From 821a6c9169de5bc11a9f34c66946d1efa89fd655 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Thu, 27 Jul 2006 21:23:55 +0000 Subject: Thou shall always test compilation before commiting. (fixes b&w LCD targets) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10343 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/star.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/plugins/star.c b/apps/plugins/star.c index c844549c05..2cb380810f 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c @@ -920,19 +920,27 @@ static int star_menu(void) case STAR_UP: if (menu_y > 0) { move_y = -1; +#if LCD_DEPTH > 1 int oldforeground = rb->lcd_get_foreground(); rb->lcd_set_foreground(LCD_BLACK); +#endif rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 2, 15, char_height + 3); +#if LCD_DEPTH > 1 rb->lcd_set_foreground(oldforeground); +#endif } break; case STAR_DOWN: if (menu_y < 3) { move_y = 1; +#if LCD_DEPTH > 1 int oldforeground = rb->lcd_get_foreground(); rb->lcd_set_foreground(LCD_BLACK); +#endif rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 1, 15, char_height + 2); +#if LCD_DEPTH > 1 rb->lcd_set_foreground(oldforeground); +#endif } break; -- cgit v1.2.3