Fix red in 2c5482cab9
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit e3f622a85108bcfb4036bf36747890c8517959cd Author: Aidan MacDonald <[email protected]> Date: Thu Aug 20 14:26:49 2026 +0100 Fix red in 2c5482cab9 The error is caused by grayscale >1bpp targets which do not define LCD_RGBPACK(). Change-Id: Ifc995d720f11fe3df8ac534bd0777e162541dc54 diff --git a/apps/gui/splash.c b/apps/gui/splash.c index fd680eac87..440164984b 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c @@ -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 -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs