forked from len0rd/rockbox
mpegplayer: reset foreground/background color and clear display in case they are changed in menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24308 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ccf8e4e8ba
commit
7ebde8503b
2 changed files with 6 additions and 6 deletions
|
@ -902,9 +902,6 @@ static int show_start_menu(uint32_t duration)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rb->lcd_clear_display();
|
|
||||||
rb->lcd_update();
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -962,9 +959,6 @@ int mpeg_menu(void)
|
||||||
if (mpeg_menu_sysevent() != 0)
|
if (mpeg_menu_sysevent() != 0)
|
||||||
result = MPEG_MENU_QUIT;
|
result = MPEG_MENU_QUIT;
|
||||||
|
|
||||||
rb->lcd_clear_display();
|
|
||||||
rb->lcd_update();
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1486,6 +1486,10 @@ static void wvs_handle_phone_plug(bool inserted)
|
||||||
static void button_loop(void)
|
static void button_loop(void)
|
||||||
{
|
{
|
||||||
rb->lcd_setfont(FONT_SYSFIXED);
|
rb->lcd_setfont(FONT_SYSFIXED);
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
|
rb->lcd_set_foreground(LCD_WHITE);
|
||||||
|
rb->lcd_set_background(LCD_BLACK);
|
||||||
|
#endif
|
||||||
rb->lcd_clear_display();
|
rb->lcd_clear_display();
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
|
|
||||||
|
@ -1583,6 +1587,8 @@ static void button_loop(void)
|
||||||
rb->lcd_set_foreground(LCD_WHITE);
|
rb->lcd_set_foreground(LCD_WHITE);
|
||||||
rb->lcd_set_background(LCD_BLACK);
|
rb->lcd_set_background(LCD_BLACK);
|
||||||
#endif
|
#endif
|
||||||
|
rb->lcd_clear_display();
|
||||||
|
rb->lcd_update();
|
||||||
|
|
||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue