mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(disp): fix comments
related to https://github.com/lvgl/lvgl/issues/4011#issuecomment-1455199216
This commit is contained in:
parent
c3194188c9
commit
43e2da7d0f
@ -236,10 +236,10 @@ lv_coord_t lv_disp_get_dpi(const lv_disp_t * disp);
|
||||
* @param disp pointer to a display
|
||||
* @param buf1 first buffer
|
||||
* @param buf2 second buffer (can be `NULL`)
|
||||
* @param buf_size_px size of the buffer in pixels
|
||||
* @param buf_size_byte size of the buffer in bytes
|
||||
* @param render_mode LV_DISP_RENDER_MODE_PARTIAL/DIRECT/FULL
|
||||
*/
|
||||
void lv_disp_set_draw_buffers(lv_disp_t * disp, void * buf1, void * buf2, uint32_t buf_size_px,
|
||||
void lv_disp_set_draw_buffers(lv_disp_t * disp, void * buf1, void * buf2, uint32_t buf_size_byte,
|
||||
lv_disp_render_mode_t render_mode);
|
||||
|
||||
/**
|
||||
|
@ -65,7 +65,7 @@ typedef struct _lv_disp_t {
|
||||
/** Internal, used by the library*/
|
||||
void * draw_buf_act;
|
||||
|
||||
/** In pixel count*/
|
||||
/** In byte count*/
|
||||
uint32_t draw_buf_size;
|
||||
|
||||
/** MANDATORY: Write the internal buffer (draw_buf) to the display. 'lv_disp_flush_ready()' has to be
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user