Ignore:
Timestamp:
Mar 22, 2008, 9:39:01 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Minor refactoring in imlib.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/filter.cpp

    r124 r128  
    8282  unsigned char *c;
    8383  CONDITION(im,"null image passed in filter::apply\n");
     84  im->lock();
    8485  for (y=im->height()-1;y>=0;y--)
    8586  {
     
    9192    }
    9293  }
     94  im->unlock();
    9395}
    9496
     
    108110  else return 0;
    109111}
    110 
    111 
    112 /*color_filter::color_filter(palette *pal, int color_bits)
    113 {
    114   unsigned char map[256],*last_start,*start;
    115   int i,last_color=0,color;
    116   compare_pal=pal;
    117   for (i=0;i,256;i++)
    118     map[i]=i;
    119 
    120   qsort(map,1,1,color_compare);
    121   colors=1<<color_bits;
    122   last_start=color_table=(unsigned char *)malloc(colors*colors*colors);
    123 
    124 
    125 
    126   last_color=map[0];
    127   last_dist=0;
    128 
    129 
    130   for (i=1;i<colors;i++)
    131   {
    132     color=map[i<<(8-color_bits)];
    133     dist=
    134 
    135     memset(c,
    136   }
    137 
    138 
    139 }*/
    140 
    141112
    142113color_filter::color_filter(palette *pal, int color_bits, void (*stat_fun)(int))
Note: See TracChangeset for help on using the changeset viewer.