summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/sdl/lcd-bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/lcd-bitmap.c b/firmware/target/hosted/sdl/lcd-bitmap.c
index 5add2367a0..5f895d802d 100644
--- a/firmware/target/hosted/sdl/lcd-bitmap.c
+++ b/firmware/target/hosted/sdl/lcd-bitmap.c
@@ -112,7 +112,7 @@ static unsigned long get_lcd_pixel(int x, int y)
#else
return *FBADDR(x, y);
#endif
-#elif LCD_DEPTH == 24
+#elif LCD_DEPTH >= 24
return FB_UNPACK_SCALAR_LCD(*FBADDR(x, y));
#endif
}