The error is caused by grayscale >1bpp targets which do not
define LCD_RGBPACK().

Change-Id: Ifc995d720f11fe3df8ac534bd0777e162541dc54
This commit is contained in:
Aidan MacDonald 2026-08-20 14:26:49 +01:00
parent 2c5482cab9
commit e3f622a851

View file

@ -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