Skip to content

Commit

Permalink
PicoGraphics: RGB565 skip layers if not enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Oct 9, 2024
1 parent 6f2393a commit 362b9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/pico_graphics/pico_graphics_pen_rgb565.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace pimoroni {

for(int x = 0; x < tile->w; x++) {
uint16_t dest = *p_dest;
if(dest == 0) {
if(dest == 0 && this->layers > 1) {
dest = *p_layer0;
}
uint8_t alpha = *p_alpha;
Expand Down

0 comments on commit 362b9ef

Please sign in to comment.