diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-30 20:57:34 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-30 20:57:34 -0400 |
commit | 311f27606cb7de8b25b904b2a910d8c3623d2d79 (patch) | |
tree | 1be575f302be7a7b52c1b412e3f1dae119128f63 /apps/plugins/xrick/system | |
parent | 9b8cfd1bb39ff7c71030c43fa68a1d2edca01d80 (diff) | |
download | rockbox-311f27606cb7de8b25b904b2a910d8c3623d2d79.tar.gz rockbox-311f27606cb7de8b25b904b2a910d8c3623d2d79.zip |
xrick: Fix build on RGB888 targets
Didn't realise they needed the same hand-holding as XRGB8888
Change-Id: I28274b7326747093ef94427b1ddbcb948c907a2b
Diffstat (limited to 'apps/plugins/xrick/system')
-rw-r--r-- | apps/plugins/xrick/system/sysvid_rockbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
123 | for (i = 0; i < n; i++) | 123 | for (i = 0; i < n; i++) |
124 | { | 124 | { |
125 | #ifdef HAVE_LCD_COLOR | 125 | #ifdef HAVE_LCD_COLOR |
126 | #if LCD_PIXELFORMAT == XRGB8888 | 126 | #if (LCD_PIXELFORMAT == RGB888) || (LCD_PIXELFORMAT == XRGB8888) |
127 | int x = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); | 127 | unsigned long x = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); |
128 | palette[i] = FB_SCALARPACK(x); | 128 | palette[i] = FB_SCALARPACK(x); |
129 | #else | 129 | #else |
130 | palette[i] = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); | 130 | palette[i] = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); |