From eacb4daa2d3b06056310dae1b3e03d7dfd406adb Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 30 Jun 2024 20:23:14 -0400 Subject: More xrick-related cleanups * Correct broken CREDITS file causing HTML manual build failures * Fix warning on iAudio M3 and MPIO HD200 * Fix XRGB888 pixelformat builds, hopefully correctly. This should bring the board back to green. Change-Id: Ia7d54641d37db19d4cee3b5d9f5d8ab1567ac30b --- apps/plugins/xrick/system/sysvid_rockbox.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/plugins/xrick/system') diff --git a/apps/plugins/xrick/system/sysvid_rockbox.c b/apps/plugins/xrick/system/sysvid_rockbox.c index fccf515575..697bf2fd06 100644 --- a/apps/plugins/xrick/system/sysvid_rockbox.c +++ b/apps/plugins/xrick/system/sysvid_rockbox.c @@ -123,7 +123,12 @@ 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); + palette[i] = FB_SCALARPACK(x); +#else palette[i] = LCD_RGBPACK(pal[i].r, pal[i].g, pal[i].b); +#endif #else palette[i] = ((3 * pal[i].r) + (6 * pal[i].g) + pal[i].b) / 10; #endif @@ -212,7 +217,7 @@ void sysvid_update(const rect_t *rects) } destBuf = lcd_fb; #else - destBuf = greybuffer; + destBuf = (fb_data*) greybuffer; #endif /* HAVE_LCD_COLOR */ destBuf += resizedColumn + resizedRow * LCD_WIDTH; -- cgit v1.2.3