mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
expo: Draw the current opened menu on top
When a menu is opened, it must be displayed over all other objects in the scene, so that all its items are visible. Handle this by drawing the menu object a second time, after all other objects have been drawn. Draw all of the objects which are dependent on the menu object. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
12
boot/expo.c
12
boot/expo.c
@@ -172,6 +172,18 @@ int expo_set_scene_id(struct expo *exp, uint scene_id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int expo_first_scene_id(struct expo *exp)
|
||||
{
|
||||
struct scene *scn;
|
||||
|
||||
if (list_empty(&exp->scene_head))
|
||||
return -ENOENT;
|
||||
|
||||
scn = list_first_entry(&exp->scene_head, struct scene, sibling);
|
||||
|
||||
return scn->id;
|
||||
}
|
||||
|
||||
int expo_render(struct expo *exp)
|
||||
{
|
||||
struct udevice *dev = exp->display;
|
||||
|
||||
Reference in New Issue
Block a user