forked from len0rd/rockbox
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
This commit is contained in:
parent
c577ec6790
commit
821a6c9169
1 changed files with 8 additions and 0 deletions
|
@ -920,19 +920,27 @@ static int star_menu(void)
|
||||||
case STAR_UP:
|
case STAR_UP:
|
||||||
if (menu_y > 0) {
|
if (menu_y > 0) {
|
||||||
move_y = -1;
|
move_y = -1;
|
||||||
|
#if LCD_DEPTH > 1
|
||||||
int oldforeground = rb->lcd_get_foreground();
|
int oldforeground = rb->lcd_get_foreground();
|
||||||
rb->lcd_set_foreground(LCD_BLACK);
|
rb->lcd_set_foreground(LCD_BLACK);
|
||||||
|
#endif
|
||||||
rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 2, 15, char_height + 3);
|
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);
|
rb->lcd_set_foreground(oldforeground);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case STAR_DOWN:
|
case STAR_DOWN:
|
||||||
if (menu_y < 3) {
|
if (menu_y < 3) {
|
||||||
move_y = 1;
|
move_y = 1;
|
||||||
|
#if LCD_DEPTH > 1
|
||||||
int oldforeground = rb->lcd_get_foreground();
|
int oldforeground = rb->lcd_get_foreground();
|
||||||
rb->lcd_set_foreground(LCD_BLACK);
|
rb->lcd_set_foreground(LCD_BLACK);
|
||||||
|
#endif
|
||||||
rb->lcd_fillrect(0, menu_offset_y + char_height * menu_y - 1, 15, char_height + 2);
|
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);
|
rb->lcd_set_foreground(oldforeground);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue