mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(display): update the color format of the draw buffers on color format change (#5973)
This commit is contained in:
parent
47ec2784d8
commit
eb62ddf4ea
@ -457,6 +457,8 @@ void lv_display_set_color_format(lv_display_t * disp, lv_color_format_t color_fo
|
|||||||
|
|
||||||
disp->color_format = color_format;
|
disp->color_format = color_format;
|
||||||
disp->layer_head->color_format = color_format;
|
disp->layer_head->color_format = color_format;
|
||||||
|
if(disp->buf_1) disp->buf_1->header.cf = color_format;
|
||||||
|
if(disp->buf_2) disp->buf_2->header.cf = color_format;
|
||||||
|
|
||||||
lv_display_send_event(disp, LV_EVENT_COLOR_FORMAT_CHANGED, NULL);
|
lv_display_send_event(disp, LV_EVENT_COLOR_FORMAT_CHANGED, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user