Branch: Tag:

1999-04-09

1999-04-09 23:21:09 by Per Hedbor <ph@opera.com>

Optimizations

Rev: lib/modules/_Image_XPM.pmod:1.6

64:    retopts->hot_y = values[5];    }    TD("Colors"); -  mixed colors = ([]); +     if(sizeof(data) < ncolors+2)    error("Too few elements in array to decode color values\n"); -  +  array colors; +  if(cpp < 4) +  colors = data[1..ncolors]; +  else    colors = sort(data[1..ncolors]);    TD("Creating images");    object i = Image.image( width, height );