mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
Fix red in 2c5482cab9
The error is caused by grayscale >1bpp targets which do not define LCD_RGBPACK(). Change-Id: Ifc995d720f11fe3df8ac534bd0777e162541dc54
This commit is contained in:
parent
2c5482cab9
commit
e3f622a851
1 changed files with 12 additions and 5 deletions
|
|
@ -305,11 +305,18 @@ static bool splash_internal(struct screen * screen, const char *fmt, va_list ap,
|
|||
fg = screen->get_foreground();
|
||||
bg = screen->get_background();
|
||||
|
||||
broken = (fg == bg) ||
|
||||
(bg == SCREEN_COLOR_TO_NATIVE(screen,
|
||||
LCD_RGBPACK(244, 244, 244)) &&
|
||||
fg == SCREEN_COLOR_TO_NATIVE(screen,
|
||||
LCD_RGBPACK(255, 255, 255)));
|
||||
if (fg == bg)
|
||||
broken = true;
|
||||
|
||||
#if defined(HAVE_LCD_COLOR)
|
||||
/* iPod reFresh themes from '22 */
|
||||
if (screen->is_color)
|
||||
{
|
||||
if (bg == SCREEN_COLOR_TO_NATIVE(screen, LCD_RGBPACK(244, 244, 244)) &&
|
||||
fg == SCREEN_COLOR_TO_NATIVE(screen, LCD_RGBPACK(255, 255, 255)))
|
||||
broken = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
vp->drawmode = DRMODE_FG;
|
||||
/* can't do vp->fg_pattern here, since set_foreground does a bit more on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue