expo: Move menu dims calculations into scene_menu_arrange()
A menu's dimensions are currently only used for positioning the component parts of the menu, i.e. the label, key, description and preview. Move the logic for this entirely into the scene_menu file and drop the logic at the top level. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
12
boot/scene.c
12
boot/scene.c
@@ -1043,18 +1043,8 @@ int scene_calc_dims(struct scene *scn)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SCENEOBJT_MENU: {
|
||||
struct scene_obj_menu *menu;
|
||||
|
||||
if (do_menus) {
|
||||
menu = (struct scene_obj_menu *)obj;
|
||||
|
||||
ret = scene_menu_calc_dims(menu);
|
||||
if (ret)
|
||||
return log_msg_ret("men", ret);
|
||||
}
|
||||
case SCENEOBJT_MENU:
|
||||
break;
|
||||
}
|
||||
case SCENEOBJT_TEXTLINE: {
|
||||
struct scene_obj_textline *tline;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user