Bugfix for new list implementation - correctly assign colours for remote LCDs (fixes wrong colours on X5 remote)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16599 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
67481f5fd6
commit
2b7d48ede0
1 changed files with 14 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include "lcd.h"
|
||||
#include "lcd-remote.h"
|
||||
#include "font.h"
|
||||
#include "sprintf.h"
|
||||
#include "string.h"
|
||||
|
@ -57,7 +58,11 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
|
|||
vp->drawmode = DRMODE_SOLID;
|
||||
vp->font = FONT_UI; /* default to UI to discourage SYSFONT use */
|
||||
#endif
|
||||
if (screens[screen].depth > 1)
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
/* We only need this test if there is a remote LCD */
|
||||
if (screen == SCREEN_MAIN)
|
||||
#endif
|
||||
{
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
vp->fg_pattern = global_settings.fg_color;
|
||||
|
@ -70,4 +75,12 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
|
|||
vp->bg_pattern = LCD_DEFAULT_BG;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
|
||||
if (screen == SCREEN_REMOTE)
|
||||
{
|
||||
vp->fg_pattern = LCD_REMOTE_DEFAULT_FG;
|
||||
vp->bg_pattern = LCD_REMOTE_DEFAULT_BG;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue