Skip to content
Permalink
Browse files

gui: Corrected RGB888 pointer in LVGL write function

Corrected buffer pointer in LVGL zephyr_vdb_write function for
converting RGBA8888 to RGB888 pixel format.

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
  • Loading branch information...
vanwinkeljan authored and nashif committed May 28, 2019
1 parent 105fccf commit 539d16fca8d28e3597f9d42c02f9923f44e0a7cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gui/lvgl/lvgl_color_32.c
@@ -49,7 +49,7 @@ static void zephyr_disp_flush(s32_t x1, s32_t y1, s32_t x2, s32_t y2,
static void zephyr_vdb_write(u8_t *buf, lv_coord_t buf_w, lv_coord_t x,
lv_coord_t y, lv_color_t color, lv_opa_t opa)
{
u8_t *buf_xy = buf + x + y * buf_w;
u8_t *buf_xy = buf + x * 3U + y * 3U * buf_w;

if (opa != LV_OPA_COVER) {
lv_color_t mix_color;

0 comments on commit 539d16f

Please sign in to comment.
You can’t perform that action at this time.