mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix FS#13523 splashf crash on devices with remote LCD
regression introduced in ff2f912
Change-Id: Ifc9f37710e379605ad3325679325aab229003a21
This commit is contained in:
parent
afb0e845cf
commit
b1e70db6e7
1 changed files with 8 additions and 5 deletions
|
@ -148,14 +148,17 @@ static bool splash_internal(struct screen * screen, const char *fmt, va_list ap,
|
||||||
|
|
||||||
vp->flags |= VP_FLAG_ALIGN_CENTER;
|
vp->flags |= VP_FLAG_ALIGN_CENTER;
|
||||||
#if LCD_DEPTH > 1
|
#if LCD_DEPTH > 1
|
||||||
unsigned fg = screen->get_foreground();
|
unsigned fg = 0, bg = 0;
|
||||||
unsigned bg = screen->get_background();
|
bool broken = false;
|
||||||
|
|
||||||
bool broken = (fg == bg) ||
|
|
||||||
(bg == 63422 && fg == 65535); /* -> iPod reFresh themes from '22 */
|
|
||||||
|
|
||||||
if (screen->depth > 1)
|
if (screen->depth > 1)
|
||||||
{
|
{
|
||||||
|
fg = screen->get_foreground();
|
||||||
|
bg = screen->get_background();
|
||||||
|
|
||||||
|
broken = (fg == bg) ||
|
||||||
|
(bg == 63422 && fg == 65535); /* -> iPod reFresh themes from '22 */
|
||||||
|
|
||||||
vp->drawmode = DRMODE_FG;
|
vp->drawmode = DRMODE_FG;
|
||||||
/* can't do vp->fg_pattern here, since set_foreground does a bit more on
|
/* can't do vp->fg_pattern here, since set_foreground does a bit more on
|
||||||
* greyscale */
|
* greyscale */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue