diff options
Diffstat (limited to 'apps/plugins/lib/highscore.c')
-rw-r--r-- | apps/plugins/lib/highscore.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/lib/highscore.c b/apps/plugins/lib/highscore.c index 3aae955bfc..04faf27891 100644 --- a/apps/plugins/lib/highscore.c +++ b/apps/plugins/lib/highscore.c | |||
@@ -124,11 +124,16 @@ void highscore_show(int position, struct highscore *scores, int num_scores, | |||
124 | bool show_level) | 124 | bool show_level) |
125 | { | 125 | { |
126 | int i, w, h; | 126 | int i, w, h; |
127 | #ifdef HAVE_LCD_COLOR | 127 | #if defined(HAVE_LCD_COLOR) || LCD_DEPTH >= 2 |
128 | unsigned bgcolor = rb->lcd_get_background(); | 128 | unsigned bgcolor = rb->lcd_get_background(); |
129 | unsigned fgcolor = rb->lcd_get_foreground(); | 129 | unsigned fgcolor = rb->lcd_get_foreground(); |
130 | #ifdef HAVE_LCD_COLOR | ||
130 | rb->lcd_set_background(LCD_BLACK); | 131 | rb->lcd_set_background(LCD_BLACK); |
131 | rb->lcd_set_foreground(LCD_WHITE); | 132 | rb->lcd_set_foreground(LCD_WHITE); |
133 | #else | ||
134 | rb->lcd_set_background(LCD_WHITE); | ||
135 | rb->lcd_set_foreground(LCD_BLACK); | ||
136 | #endif | ||
132 | #endif | 137 | #endif |
133 | rb->lcd_clear_display(); | 138 | rb->lcd_clear_display(); |
134 | 139 | ||
@@ -173,7 +178,7 @@ void highscore_show(int position, struct highscore *scores, int num_scores, | |||
173 | rb->button_clear_queue(); | 178 | rb->button_clear_queue(); |
174 | rb->button_get(true); | 179 | rb->button_get(true); |
175 | rb->lcd_setfont(FONT_SYSFIXED); | 180 | rb->lcd_setfont(FONT_SYSFIXED); |
176 | #ifdef HAVE_LCD_COLOR | 181 | #if defined(HAVE_LCD_COLOR) || LCD_DEPTH >= 2 |
177 | rb->lcd_set_background(bgcolor); | 182 | rb->lcd_set_background(bgcolor); |
178 | rb->lcd_set_foreground(fgcolor); | 183 | rb->lcd_set_foreground(fgcolor); |
179 | #endif | 184 | #endif |