diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2006-10-14 01:32:58 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2006-10-14 01:32:58 +0000 |
| commit | 6aa12c11f741a4544d780d11fc583a25a5aef171 (patch) | |
| tree | 0fe4b08bd13817657660c5339247e8ea203f2508 /apps/gui | |
| parent | 1f3360f0216dbf54bcd50547a759fa6e514c6e76 (diff) | |
| download | rockbox-6aa12c11f741a4544d780d11fc583a25a5aef171.zip rockbox-6aa12c11f741a4544d780d11fc583a25a5aef171.tar.gz rockbox-6aa12c11f741a4544d780d11fc583a25a5aef171.tar.bz2 rockbox-6aa12c11f741a4544d780d11fc583a25a5aef171.tar.xz | |
Added a small interface to screens to translate colors into remote gray levels on the x5. Splash screens paint properly with light gray. Should be adapted to a more general approach in the future. A few trailing whitespace trimmings got into a couple files but that is fine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11218 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/splash.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/splash.c b/apps/gui/splash.c index 1f04b89..3090921 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c @@ -137,7 +137,8 @@ static void splash(struct screen * screen, bool center, { prevfg = screen->get_foreground(); screen->set_drawmode(DRMODE_FG); - screen->set_foreground(LCD_LIGHTGRAY); + screen->set_foreground( + SCREEN_COLOR_TO_NATIVE(screen, LCD_LIGHTGRAY)); } else #endif @@ -147,7 +148,8 @@ static void splash(struct screen * screen, bool center, #if LCD_DEPTH > 1 if (screen->depth > 1) - screen->set_foreground(LCD_BLACK); + screen->set_foreground( + SCREEN_COLOR_TO_NATIVE(screen, LCD_BLACK)); else #endif screen->set_drawmode(DRMODE_SOLID); |