mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
fix red rli_img
devices > 16 bit depth use a struct of values for the pixels this needs converted to use by functions expecting a single integer as a pixel value Change-Id: I540d667239bc581e1d31dfe1e07c51ba10803ddf
This commit is contained in:
parent
a6570b7d37
commit
123858287b
1 changed files with 1 additions and 1 deletions
|
@ -647,7 +647,7 @@ static void d_line(struct rocklua_image *img,
|
|||
img_vp.fg_pattern = 0x55 * (~(*clr) & 3);
|
||||
img_vp.drawmode = DRMODE_FG;
|
||||
#elif LCD_DEPTH > 1
|
||||
img_vp.fg_pattern = *clr;
|
||||
img_vp.fg_pattern = FB_UNPACK_SCALAR_LCD(*clr);
|
||||
img_vp.drawmode = DRMODE_FG;
|
||||
#else /* bit of a hack to make sure lines show properly from lua */
|
||||
/* use rb.lcd_drawline if you want full control */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue