A basic graphics package for the LPC4088 Display Module.
Dependents: lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more
Fork of DMBasicGUI by
Diff: Application/bmp.cpp
- Revision:
- 10:651861441108
- Parent:
- 0:4977187e90c7
--- a/Application/bmp.cpp Tue Jan 20 09:05:30 2015 +0100 +++ b/Application/bmp.cpp Mon Jan 26 10:06:58 2015 +0100 @@ -150,7 +150,7 @@ #if 1 if (target_bpp == 16) { // Modified by Embedded Artists to convert to 565-format instead of 24 bit - for(int x=0; x<width; x++) + for(unsigned int x=0; x<width; x++) { r = *(unsigned char *)(image + (height - i - 1) * rowWidthBytes + 3*x + 2); g = *(unsigned char *)(image + (height - i - 1) * rowWidthBytes + 3*x + 1); @@ -161,7 +161,7 @@ } } else { // Modified by Embedded Artists to add alpha channel in 24 bit output - for(int x=0; x<width; x++) + for(unsigned int x=0; x<width; x++) { r = *(unsigned char *)(image + (height - i - 1) * rowWidthBytes + 3*x + 2); g = *(unsigned char *)(image + (height - i - 1) * rowWidthBytes + 3*x + 1);