Changeset 579 for abuse/trunk/src/imlib/supmorph.cpp
- Timestamp:
- May 5, 2011, 12:36:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/supmorph.cpp
r555 r579 259 259 260 260 261 int smorph_player::show(image *screen, int x, int y, color_filter *fil, palette *pal,261 int smorph_player::show(image *screen, int x, int y, ColorFilter *fil, palette *pal, 262 262 int blur_threshold) 263 263 { … … 279 279 if (px>=x1 && px < x2 && py>=y1 && py < y2) 280 280 { 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), 282 282 ss->g>>(19), 283 283 ss->b>>(19)); … … 323 323 dist+=((int)(*pa)-b)*((int)(*pa)-b); 324 324 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); 326 326 } else *(tl)=*(screen->scan_line(y+iy)+x+ix)=0; // kill single pixels 327 327 } 328 328 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); 330 330 } 331 331 }
Note: See TracChangeset
for help on using the changeset viewer.