diff options
author | Simon Glass <sjg@chromium.org> | 2023-06-01 10:22:35 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-14 12:54:51 -0400 |
commit | 14a86a510792cb8a69ded6ea3b6c34a150bae3ab (patch) | |
tree | f41cc38aa41eeec472e9baa7a1f8da094f7974d9 /boot/scene.c | |
parent | 42b18494bdaf677c4726ef47a839b16a1a3daba2 (diff) |
expo: Avoid automatically arranging the scene
This should ideally be done once after all scene changes have been made.
Require an explicit call when everything is ready.
Always arrange after a key it sent, just for convenience.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/scene.c')
-rw-r--r-- | boot/scene.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/boot/scene.c b/boot/scene.c index 7e9ba047f2d..1383be20321 100644 --- a/boot/scene.c +++ b/boot/scene.c @@ -211,8 +211,6 @@ int scene_obj_set_pos(struct scene *scn, uint id, int x, int y) return log_msg_ret("find", -ENOENT); obj->x = x; obj->y = y; - if (obj->type == SCENEOBJT_MENU) - scene_menu_arrange(scn, (struct scene_obj_menu *)obj); return 0; } @@ -391,11 +389,6 @@ int scene_send_key(struct scene *scn, int key, struct expo_action *event) ret = scene_menu_send_key(scn, menu, key, event); if (ret) return log_msg_ret("key", ret); - - /* only allow one menu */ - ret = scene_menu_arrange(scn, menu); - if (ret) - return log_msg_ret("arr", ret); break; } } |