Changeset 512 for abuse/trunk/src/imlib/filter.cpp
- Timestamp:
- Apr 20, 2011, 12:39:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/filter.cpp
r494 r512 11 11 #include "config.h" 12 12 13 #include "common.h" 14 13 15 #include "image.h" 14 16 #include "macs.h" … … 84 86 CONDITION(im,"null image passed in filter::apply\n"); 85 87 im->lock(); 86 for (y=im-> height()-1; y>=0; y--)88 for (y=im->Size().y-1; y>=0; y--) 87 89 { 88 90 c=im->scan_line(y); 89 for (x=im-> width()-1; x>=0; x--)91 for (x=im->Size().x-1; x>=0; x--) 90 92 { 91 93 CONDITION((unsigned) c[x]<nc,"not enough filter colors"); … … 179 181 { 180 182 short cx1, cy1, cx2, cy2, x1 = 0, y1 = 0, 181 x2 = im-> width() - 1, y2 = im->height()- 1;183 x2 = im->Size().x - 1, y2 = im->Size().y - 1; 182 184 screen->get_clip(cx1,cy1,cx2,cy2); 183 185
Note: See TracChangeset
for help on using the changeset viewer.