Changeset 50371 in vbox for trunk/src/VBox/GuestHost/OpenGL/util/bmpscale.cpp
- Timestamp:
- Feb 7, 2014 9:59:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/bmpscale.cpp
r50365 r50371 61 61 } 62 62 63 DECLINLINE(void) gdImageSetPixel (gdImagePtr im, int x, int y, int color, int w)63 DECLINLINE(void) gdImageSetPixel (gdImagePtr im, int x, int y, int color, int cbLine) 64 64 { 65 *(int32_t *)(im + y * w * 4+ x * 4) = color;65 *(int32_t *)(im + y * cbLine + x * 4) = color; 66 66 } 67 67 … … 190 190 gdTrueColorAlpha ((int) red, 191 191 (int) green, 192 (int) blue, (int) alpha), dstW );192 (int) blue, (int) alpha), dstW * 4); 193 193 } 194 194 }
Note:
See TracChangeset
for help on using the changeset viewer.