ImageMagick makes diff format header

This commit is contained in:
prenticedavid
2019-10-23 16:18:24 +01:00
parent a885540e86
commit 748427061c
2 changed files with 6 additions and 2 deletions

View File

@@ -170,7 +170,9 @@ uint8_t showBMP(char *nm, int x, int y)
h = tft.height() - y;
if (bmpDepth <= PALETTEDEPTH) { // these modes have separate palette
bmpFile.seek(BMPIMAGEOFFSET); //palette is always @ 54
//bmpFile.seek(BMPIMAGEOFFSET); //palette is always @ 54
bmpFile.seek(50); //colorsimportant
bmpFile.seek(read32() ? 122 : 54); //important or regular palette
bitmask = 0xFF;
if (bmpDepth < 8)
bitmask >>= bmpDepth;

View File

@@ -173,7 +173,9 @@ uint8_t showBMP(char *nm, int x, int y)
h = tft.height() - y;
if (bmpDepth <= PALETTEDEPTH) { // these modes have separate palette
bmpFile.seek(BMPIMAGEOFFSET); //palette is always @ 54
//bmpFile.seek(BMPIMAGEOFFSET); //palette is always @ 54
bmpFile.seek(50); //colorsimportant
bmpFile.seek(read32() ? 122 : 54); //important or regular palette
bitmask = 0xFF;
if (bmpDepth < 8)
bitmask >>= bmpDepth;