code clean up

pull/1/head
Thomas Ballmann 4 years ago
parent 39d94fcb39
commit 6060f55584

@ -7,10 +7,6 @@ pngle_t *pngle;
void on_draw(pngle_t *pngle, uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint8_t rgba[4])
{
uint8_t r = rgba[0]; // 0 - 255
uint8_t g = rgba[1]; // 0 - 255
uint8_t b = rgba[2]; // 0 - 255
ImageProcessPixel(x, y, rgba);
}
@ -20,8 +16,6 @@ void setupImagePNG()
pngle = pngle_new();
pngle_set_draw_callback(pngle, on_draw);
Serial.println("setupPNG done");
}
void pngOpenFramebuffer()
@ -32,6 +26,8 @@ void pngOpenFramebuffer()
void pngWriteFramebuffer(int offset, uint8_t bitmap[], int c)
{
Serial.print(".");
int fed = pngle_feed(pngle, bitmap, c);
if (fed < 0)
{

Loading…
Cancel
Save