diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-05-15 15:27:32 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-05-15 15:27:32 +0000 |
| commit | dad292c3ef9b7ce9f393ea1e0de5ff2ac90d79a0 (patch) | |
| tree | 3b221c144250dde5e4e9bb08d7cf6ff2f128577d | |
| parent | f4aa7428ea4c0b62eb3076f5877be9bfea0719b6 (diff) | |
| download | rockbox-dad292c3ef9b7ce9f393ea1e0de5ff2ac90d79a0.zip rockbox-dad292c3ef9b7ce9f393ea1e0de5ff2ac90d79a0.tar.gz rockbox-dad292c3ef9b7ce9f393ea1e0de5ff2ac90d79a0.tar.bz2 rockbox-dad292c3ef9b7ce9f393ea1e0de5ff2ac90d79a0.tar.xz | |
Fix splash on greyscale (was showing only a black or grey box, no text) by reverting to lcd_set_foreground(). That does a bit more on greyscale than just setting the current's viewports fg_pattern :/
It will still only apply to the viewport used for splash, so no need to restore the old foreground.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20944 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/splash.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/gui/splash.c b/apps/gui/splash.c index 5b3710f..50355d3 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c @@ -153,7 +153,9 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) if (screen->depth > 1) { vp.drawmode = DRMODE_FG; - vp.fg_pattern = SCREEN_COLOR_TO_NATIVE(screen, LCD_LIGHTGRAY); + /* can't do vp.fg_pattern here, since set_foreground does a bit more on + * greyscale */ + screen->set_foreground(SCREEN_COLOR_TO_NATIVE(screen, LCD_LIGHTGRAY)); } else #endif @@ -163,7 +165,9 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) #if LCD_DEPTH > 1 if (screen->depth > 1) - vp.fg_pattern = SCREEN_COLOR_TO_NATIVE(screen, LCD_BLACK); + /* can't do vp.fg_pattern here, since set_foreground does a bit more on + * greyscale */ + screen->set_foreground(SCREEN_COLOR_TO_NATIVE(screen, LCD_BLACK)); else #endif vp.drawmode = DRMODE_SOLID; |