Ignore:
Timestamp:
May 5, 2011, 12:36:33 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor the Filter and ColorFilter? classes.

File:
1 edited

Legend:

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

    r555 r579  
    259259
    260260
    261 int smorph_player::show(image *screen, int x, int y, color_filter *fil, palette *pal,
     261int smorph_player::show(image *screen, int x, int y, ColorFilter *fil, palette *pal,
    262262            int blur_threshold)
    263263{
     
    279279      if (px>=x1 && px < x2 && py>=y1 && py < y2)
    280280      {
    281         hole[ix+iy*w]=*(screen->scan_line(py)+px)=fil->lookup_color(ss->r>>(19),
     281        hole[ix+iy*w]=*(screen->scan_line(py)+px)=fil->Lookup(ss->r>>(19),
    282282                                    ss->g>>(19),
    283283                                    ss->b>>(19));
     
    323323          dist+=((int)(*pa)-b)*((int)(*pa)-b);
    324324          if (dist>blur_threshold)
    325             *(tl)=*(screen->scan_line(y+iy)+x+ix)=fil->lookup_color(r>>3,g>>3,b>>3);
     325            *(tl)=*(screen->scan_line(y+iy)+x+ix)=fil->Lookup(r>>3,g>>3,b>>3);
    326326        } else *(tl)=*(screen->scan_line(y+iy)+x+ix)=0; // kill single pixels
    327327      }
    328328      else if (t>=3)
    329         *(tl)=*(screen->scan_line(y+iy)+x+ix)=fil->lookup_color((r/t)>>3,(g/t)>>3,(b/t)>>3);
     329        *(tl)=*(screen->scan_line(y+iy)+x+ix)=fil->Lookup((r/t)>>3,(g/t)>>3,(b/t)>>3);
    330330    }
    331331      }
Note: See TracChangeset for help on using the changeset viewer.