Fix 1bpp pushSprite with transparent colour

This commit is contained in:
Bodmer
2021-12-16 01:42:23 +00:00
parent 61608a7ca2
commit dd8fc20cb4
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1857,9 +1857,9 @@ void TFT_eSPI::pushImage(int32_t x, int32_t y, int32_t w, int32_t h, uint8_t *da
}
px++;
}
if (np) { setWindow(sx, y, sx + np - 1, y); pushBlock(bitmap_fg, np); np = 0; }
y++;
data += ww;
if (np) { setWindow(sx, y, sx + np - 1, y); pushBlock(bitmap_fg, np); np = 0; }
}
}
_swapBytes = swap; // Restore old value