JPEGDEC/PicoGraphics: Add support for RGB888 target.

Fixes https://github.com/pimoroni/pimoroni-pico/issues/573
pull/600/head
Phil Howard 2022-12-13 14:03:28 +00:00
rodzic b1e8ed0864
commit e0a1627fba
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -137,6 +137,9 @@ MICROPY_EVENT_POLL_HOOK
// Dithered output to RGB332
current_graphics->set_pixel_dither({pDraw->x + x, pDraw->y + y}, (RGB565)(pDraw->pPixels[i]));
}
} else if (current_graphics->pen_type == PicoGraphics::PEN_RGB888) {
current_graphics->set_pen(RGB((RGB565)pDraw->pPixels[i]).to_rgb888());
current_graphics->pixel({pDraw->x + x, pDraw->y + y});
} else if (current_graphics->pen_type == PicoGraphics::PEN_P8 || current_graphics->pen_type == PicoGraphics::PEN_P4 || current_graphics->pen_type == PicoGraphics::PEN_3BIT) {
current_graphics->set_pixel_dither({pDraw->x + x, pDraw->y + y}, RGB((RGB565)pDraw->pPixels[i]));
} else {