From 311f27606cb7de8b25b904b2a910d8c3623d2d79 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 30 Jun 2024 20:57:34 -0400 Subject: xrick: Fix build on RGB888 targets Didn't realise they needed the same hand-holding as XRGB8888 Change-Id: I28274b7326747093ef94427b1ddbcb948c907a2b --- apps/plugins/xrick/system/sysvid_rockbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/xrick/system/sysvid_rockbox.c') diff --git a/apps/plugins/xrick/system/sysvid_rockbox.c b/apps/plugins/xrick/system/sysvid_rockbox.c index 697bf2fd06..e93522f6c9 100644 --- a/apps/plugins/xrick/system/sysvid_rockbox.c +++ b/apps/plugins/xrick/system/sysvid_rockbox.c @@ -123,8 +123,8 @@ void sysvid_setPalette(img_color_t *pal, U16 n) for (i = 0; i < n; i++) { #ifdef HAVE_LCD_COLOR -#if LCD_PIXELFORMAT == XRGB8888 - int x = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); +#if (LCD_PIXELFORMAT == RGB888) || (LCD_PIXELFORMAT == XRGB8888) + unsigned long x = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); palette[i] = FB_SCALARPACK(x); #else palette[i] = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); -- cgit v1.2.3