We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f91724c commit ecc5eb7Copy full SHA for ecc5eb7
src/LcdScreen.h
@@ -261,11 +261,19 @@ PImage PImage::loadImage(const char * fileName) {
261
return PImage();
262
}
263
264
+#if defined(LCD_SCREEN_DEBUG)
265
bmpFilesize = read32(bmpFile);
266
+#else
267
+ (void)read32(bmpFile); // Read & ignore filesize bytes
268
+#endif
269
(void)read32(bmpFile); // Read & ignore creator bytes
270
bmpImageoffset = read32(bmpFile); // Start of image data
271
// Read DIB header
- bmpHeadersize = read32(bmpFile);
272
273
+ bmpHeadersize = read32(bmpFile);
274
275
+ (void)read32(bmpFile); // Read & ignore headersize bytes
276
277
bmpWidth = read32(bmpFile);
278
bmpHeight = read32(bmpFile);
279
#if defined(LCD_SCREEN_DEBUG)
0 commit comments