1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(display): update the color format of the draw buffers on color format change (#5973)

This commit is contained in:
Gabor Kiss-Vamosi 2024-04-11 10:13:41 +02:00 committed by GitHub
parent 47ec2784d8
commit eb62ddf4ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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->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);
}