PicoGraphics: RGB565 skip layers if not enabled.

pull/1019/head
Phil Howard 2024-10-09 15:05:49 +01:00
rodzic 8f7e8d4334
commit 48ee9fde66
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -106,7 +106,7 @@ namespace pimoroni {
for(int x = 0; x < tile->w; x++) { for(int x = 0; x < tile->w; x++) {
uint16_t dest = *p_dest; uint16_t dest = *p_dest;
if(dest == 0) { if(dest == 0 && this->layers > 1) {
dest = *p_layer0; dest = *p_layer0;
} }
uint8_t alpha = *p_alpha; uint8_t alpha = *p_alpha;