mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2024-09-21 10:27:11 +00:00
Update png_support.ino
This commit is contained in:
parent
b4427d6895
commit
f7afed8df1
@ -13,6 +13,7 @@ void pngDraw(PNGDRAW *pDraw) {
|
||||
png.getLineAsRGB565(pDraw, lineBuffer, PNG_RGB565_BIG_ENDIAN, 0xffffffff);
|
||||
|
||||
if (png.getAlphaMask(pDraw, maskBuffer, 255)) {
|
||||
// Note: pushMaskedImage is for pushing to the TFT and will not work pushing into a sprite
|
||||
tft.pushMaskedImage(xpos, ypos + pDraw->y, pDraw->iWidth, 1, lineBuffer, maskBuffer);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user