Branch: Tag:

2005-11-14

2005-11-14 21:29:19 by Martin Nilsson <mani@lysator.liu.se>

Use canonical form of Image.Image

Rev: lib/modules/_Image.pmod/module.pmod:1.42
Rev: lib/modules/_Image_XPM.pmod:1.15

78:   // else    colors = sort(data[1..ncolors]);    TD("Creating images"); -  object i = Image.image( width, height ); -  object a = Image.image( width, height,255,255,255 ); +  object i = Image.Image( width, height ); +  object a = Image.Image( width, height,255,255,255 );    TD("Decoding image");   // for(int y = 0; y<height && y<sizeof(data); y++)    _xpm_write_rows( i,a,cpp,colors,data );