mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
plugins: Xobox: Fix highscore table on 2bit grayscale displays
After finishing a game of Xobox, background and foreground were both the same color, making the high score table invisible.. Change-Id: Iab4bad0e7d3f247a4b600ff9ec8e57207bc3832f
This commit is contained in:
parent
66bed14f17
commit
d59e135b04
1 changed files with 7 additions and 2 deletions
|
@ -124,11 +124,16 @@ void highscore_show(int position, struct highscore *scores, int num_scores,
|
|||
bool show_level)
|
||||
{
|
||||
int i, w, h;
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
#if defined(HAVE_LCD_COLOR) || LCD_DEPTH >= 2
|
||||
unsigned bgcolor = rb->lcd_get_background();
|
||||
unsigned fgcolor = rb->lcd_get_foreground();
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
rb->lcd_set_background(LCD_BLACK);
|
||||
rb->lcd_set_foreground(LCD_WHITE);
|
||||
#else
|
||||
rb->lcd_set_background(LCD_WHITE);
|
||||
rb->lcd_set_foreground(LCD_BLACK);
|
||||
#endif
|
||||
#endif
|
||||
rb->lcd_clear_display();
|
||||
|
||||
|
@ -173,7 +178,7 @@ void highscore_show(int position, struct highscore *scores, int num_scores,
|
|||
rb->button_clear_queue();
|
||||
rb->button_get(true);
|
||||
rb->lcd_setfont(FONT_SYSFIXED);
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
#if defined(HAVE_LCD_COLOR) || LCD_DEPTH >= 2
|
||||
rb->lcd_set_background(bgcolor);
|
||||
rb->lcd_set_foreground(fgcolor);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue