fix(fbdev): set resolution prior to buffer (#6004)
Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
This commit is contained in:
@@ -233,8 +233,8 @@ void lv_linux_fbdev_set_file(lv_display_t * disp, const char * file)
|
|||||||
draw_buf_2 = malloc(draw_buf_size);
|
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_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) {
|
if(width > 0) {
|
||||||
lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 254, width * 10));
|
lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 254, width * 10));
|
||||||
|
|||||||
Reference in New Issue
Block a user