summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index b784637308..e2714b2324 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -140,7 +140,7 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
screen->transparent_bitmap=&lcd_bitmap_transparent;
screen->transparent_bitmap_part=&lcd_bitmap_transparent_part;
#endif
-#if defined(HAVE_LCD_COLOR) && LCD_REMOTE_DEPTH > 1
+#if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && LCD_REMOTE_DEPTH > 1
screen->color_to_native=&lcd_color_to_native;
#endif
screen->get_background=&lcd_get_background;