mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(lv_canvas.c): fix use of uninitialized variable (#7556)
This commit is contained in:
parent
2c4f722f4b
commit
1f9f5f475f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user