From f7afed8df1af043477789156619a3dd79299c5bf Mon Sep 17 00:00:00 2001 From: Bodmer Date: Fri, 17 Feb 2023 22:42:06 +0000 Subject: [PATCH] Update png_support.ino --- examples/PNG Images/Flash_transparent_PNG/png_support.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/PNG Images/Flash_transparent_PNG/png_support.ino b/examples/PNG Images/Flash_transparent_PNG/png_support.ino index c77efe6..464e20b 100644 --- a/examples/PNG Images/Flash_transparent_PNG/png_support.ino +++ b/examples/PNG Images/Flash_transparent_PNG/png_support.ino @@ -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); } }