summaryrefslogtreecommitdiff
path: root/apps/plugins/star.c
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2006-07-27 21:23:55 +0000
committerAntoine Cellerier <dionoea@videolan.org>2006-07-27 21:23:55 +0000
commit821a6c9169de5bc11a9f34c66946d1efa89fd655 (patch)
treecaab22e7a2f5acc0582b8137e89401e1c9e09f45 /apps/plugins/star.c
parentc577ec6790605af78d4d6f5dab0f484ee1d64e36 (diff)
downloadrockbox-821a6c9169de5bc11a9f34c66946d1efa89fd655.tar.gz
rockbox-821a6c9169de5bc11a9f34c66946d1efa89fd655.zip
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
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r--apps/plugins/star.c8
1 files changed, 8 insertions, 0 deletions
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)
920 case STAR_UP: 920 case STAR_UP:
921 if (menu_y > 0) { 921 if (menu_y > 0) {
922 move_y = -1; 922 move_y = -1;
923#if LCD_DEPTH > 1
923 int oldforeground = rb->lcd_get_foreground(); 924 int oldforeground = rb->lcd_get_foreground();
924 rb->lcd_set_foreground(LCD_BLACK); 925 rb->lcd_set_foreground(LCD_BLACK);
926#endif
925 rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 2, 15, char_height + 3); 927 rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 2, 15, char_height + 3);
928#if LCD_DEPTH > 1
926 rb->lcd_set_foreground(oldforeground); 929 rb->lcd_set_foreground(oldforeground);
930#endif
927 } 931 }
928 break; 932 break;
929 case STAR_DOWN: 933 case STAR_DOWN:
930 if (menu_y < 3) { 934 if (menu_y < 3) {
931 move_y = 1; 935 move_y = 1;
936#if LCD_DEPTH > 1
932 int oldforeground = rb->lcd_get_foreground(); 937 int oldforeground = rb->lcd_get_foreground();
933 rb->lcd_set_foreground(LCD_BLACK); 938 rb->lcd_set_foreground(LCD_BLACK);
939#endif
934 rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 1, 15, char_height + 2); 940 rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 1, 15, char_height + 2);
941#if LCD_DEPTH > 1
935 rb->lcd_set_foreground(oldforeground); 942 rb->lcd_set_foreground(oldforeground);
943#endif
936 } 944 }
937 break; 945 break;
938 946