fix(disp): fix comments

related to https://github.com/lvgl/lvgl/issues/4011#issuecomment-1455199216
This commit is contained in:
Gabor Kiss-Vamosi
2023-03-06 06:07:13 +01:00
parent c3194188c9
commit 43e2da7d0f
3 changed files with 8 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ lv_disp_t * lv_sdl_window_create(lv_coord_t hor_res, lv_coord_t ver_res)
lv_disp_set_flush_cb(disp, flush_cb);
lv_disp_set_draw_buffers(disp, dsc->fb, NULL,
lv_disp_get_hor_res(disp) * lv_disp_get_hor_res(disp), LV_DISP_RENDER_MODE_DIRECT);
lv_disp_get_hor_res(disp) * lv_disp_get_hor_res(disp) * sizeof(lv_color_t), LV_DISP_RENDER_MODE_DIRECT);
lv_disp_add_event(disp, res_chg_event_cb, LV_EVENT_RESOLUTION_CHANGED, NULL);
return disp;