[Concept,14/16] boot: Explicitly request that the menu position its objects

Message ID 20251014111301.1059317-15-sjg@chromium.org
State New
Headers
Series boot: Separate out the boot-menu style |

Commit Message

Simon Glass Oct. 14, 2025, 11:12 a.m. UTC
  Manual mode is not enabled by default, but we should explicitly clear
it with the basic menu, since a different style may have set the flag.

Set manual mode to false in bootflow_menu_set_props()

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/bootflow_menu.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/boot/bootflow_menu.c b/boot/bootflow_menu.c
index 5f559e2220c..2f60ccd59ce 100644
--- a/boot/bootflow_menu.c
+++ b/boot/bootflow_menu.c
@@ -130,6 +130,9 @@  int bootflow_menu_set_props(struct expo *exp, struct scene *scn, bool has_logo,
 	scene_set_highlight_id(scn, OBJ_MENU);
 	scene_obj_set_hide(scn, OBJ_POINTER, false);
 
+	/* tell the menu to lay out its objects */
+	scene_obj_set_manual(scn, OBJ_MENU, false);
+
 	expo_set_mouse_enable(exp, false);
 
 	exp->show_highlight = true;