mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 15:42:28 -05:00
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
This commit is contained in:
parent
423350ec4d
commit
eacb4daa2d
3 changed files with 72 additions and 74 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue