multi-disp_: minor fixes
This commit is contained in:
@@ -106,7 +106,7 @@ lv_obj_t * lv_tabview_create(lv_obj_t * par, const lv_obj_t * copy)
|
||||
ext->tab_name_ptr[0] = "";
|
||||
ext->tab_cnt = 0;
|
||||
|
||||
lv_disp_t * disp = lv_obj_get_disp(par);
|
||||
lv_disp_t * disp = lv_obj_get_disp(new_tabview);
|
||||
lv_obj_set_size(new_tabview, lv_disp_get_hor_res(disp), lv_disp_get_ver_res(disp));
|
||||
|
||||
ext->btns = lv_btnm_create(new_tabview, NULL);
|
||||
|
||||
@@ -70,7 +70,10 @@ lv_obj_t * lv_win_create(lv_obj_t * par, const lv_obj_t * copy)
|
||||
|
||||
/*Init the new window object*/
|
||||
if(copy == NULL) {
|
||||
lv_obj_set_size(new_win, LV_DPI * 3, LV_DPI * 3);
|
||||
lv_obj_t * disp = lv_obj_get_disp(new_win);
|
||||
lv_coord_t hres = lv_disp_get_hor_res(disp);
|
||||
lv_coord_t vres = lv_disp_get_ver_res(disp);
|
||||
lv_obj_set_size(new_win, hres, vres);
|
||||
lv_obj_set_pos(new_win, 0, 0);
|
||||
lv_obj_set_style(new_win, &lv_style_pretty);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user