This commit is contained in:
2026-02-13 14:42:07 -08:00
parent df0527b123
commit fbc02af589
670 changed files with 55968 additions and 51275 deletions

View File

@@ -30,7 +30,7 @@ typedef struct my_private_struct
int xoff, yoff; // corner offset
} PRIVATE;
int PNGDraw(PNGDRAW *pDraw)
void PNGDraw(PNGDRAW *pDraw)
{
uint16_t usPixels[320];
uint8_t ucMask[40];
@@ -40,7 +40,6 @@ PRIVATE *pPriv = (PRIVATE *)pDraw->pUser;
if (png.getAlphaMask(pDraw, ucMask, 255)) { // if any pixels are opaque, draw them
spilcdWritePixelsMasked(&lcd, pPriv->xoff, pPriv->yoff + pDraw->y, (uint8_t *)usPixels, ucMask, pDraw->iWidth, DRAW_TO_LCD);
}
return 1;
} /* PNGDraw() */
void setup() {