mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(fbdev): set resolution prior to buffer (#6004)
Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
This commit is contained in:
parent
4fcf70828d
commit
29662d1c35
@ -233,8 +233,8 @@ void lv_linux_fbdev_set_file(lv_display_t * disp, const char * file)
|
||||
draw_buf_2 = malloc(draw_buf_size);
|
||||
}
|
||||
|
||||
lv_display_set_buffers(disp, draw_buf, draw_buf_2, draw_buf_size, LV_LINUX_FBDEV_RENDER_MODE);
|
||||
lv_display_set_resolution(disp, hor_res, ver_res);
|
||||
lv_display_set_buffers(disp, draw_buf, draw_buf_2, draw_buf_size, LV_LINUX_FBDEV_RENDER_MODE);
|
||||
|
||||
if(width > 0) {
|
||||
lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 254, width * 10));
|
||||
|
Loading…
x
Reference in New Issue
Block a user