pike.git / lib / modules / _Image_XPM.pmod

version» Context lines:

pike.git/lib/modules/_Image_XPM.pmod:71:      // kludge? probable FIXME?   // I can't see why the colors not always must be sorted...   // /Mirar 2003-01-31      // if(cpp < 4)   // colors = data[1..ncolors];   // 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 );   // _xpm_write_row( height, i, a, data[ncolors+y+1], cpp, colors );    TD("Done");       retopts->image = i;    retopts->alpha = a;    return retopts;   }