Changeset 521 for abuse/trunk/src/imlib/timage.cpp
- Timestamp:
- Apr 21, 2011, 9:03:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/timage.cpp
r520 r521 15 15 #include "timage.h" 16 16 17 void trans_image::make_color(int c)18 {19 uint8_t *dp=data;20 int y,x;21 for (y=0; y<h; y++)22 {23 x=0;24 while(x<w)25 {26 x+=*(dp++);27 if (x<w)28 {29 int run=*(dp++);30 memset(dp,c,run);31 x+=run;32 dp+=run;33 }34 }35 }36 }37 38 17 image *trans_image::make_image() 39 18 {
Note: See TracChangeset
for help on using the changeset viewer.