diff --git a/src/widgets/canvas/lv_canvas.c b/src/widgets/canvas/lv_canvas.c index 342f52fb4..ab45988b2 100644 --- a/src/widgets/canvas/lv_canvas.c +++ b/src/widgets/canvas/lv_canvas.c @@ -129,6 +129,7 @@ void lv_canvas_set_px(lv_obj_t * obj, int32_t x, int32_t y, lv_color_t color, lv break; case LV_COLOR_FORMAT_I8: /*Indexed8 format is a easy case, process and return.*/ + shift = 0; *data = c_int; default: return;