diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-04-18 13:38:12 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2024-04-18 13:40:01 -0400 |
commit | 123858287b01cd63b3466da3d655e44bf7667330 (patch) | |
tree | 23aa5dbc8db220d8abf9be57d97d213b0035fb9e /apps/plugins/lua | |
parent | a6570b7d378b6236c40d2e2bd983f7d53ad479e3 (diff) | |
download | rockbox-123858287b01cd63b3466da3d655e44bf7667330.tar.gz rockbox-123858287b01cd63b3466da3d655e44bf7667330.zip |
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
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r-- | apps/plugins/lua/rocklib_img.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib_img.c b/apps/plugins/lua/rocklib_img.c index 1857fbec5d..239fc1092b 100644 --- a/apps/plugins/lua/rocklib_img.c +++ b/apps/plugins/lua/rocklib_img.c | |||
@@ -647,7 +647,7 @@ static void d_line(struct rocklua_image *img, | |||
647 | img_vp.fg_pattern = 0x55 * (~(*clr) & 3); | 647 | img_vp.fg_pattern = 0x55 * (~(*clr) & 3); |
648 | img_vp.drawmode = DRMODE_FG; | 648 | img_vp.drawmode = DRMODE_FG; |
649 | #elif LCD_DEPTH > 1 | 649 | #elif LCD_DEPTH > 1 |
650 | img_vp.fg_pattern = *clr; | 650 | img_vp.fg_pattern = FB_UNPACK_SCALAR_LCD(*clr); |
651 | img_vp.drawmode = DRMODE_FG; | 651 | img_vp.drawmode = DRMODE_FG; |
652 | #else /* bit of a hack to make sure lines show properly from lua */ | 652 | #else /* bit of a hack to make sure lines show properly from lua */ |
653 | /* use rb.lcd_drawline if you want full control */ | 653 | /* use rb.lcd_drawline if you want full control */ |