aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass2023-06-01 10:22:54 -0600
committerTom Rini2023-07-14 12:54:51 -0400
commit8872bc7f9dabf923f245e9f737be8c4da0ca2a50 (patch)
treea7e802e8d16470497c5d8451227a28de8ef31918 /test
parent2e59389704cd1e46101f7ffda2dac3f44f2fa332 (diff)
expo: Move menu-item selection into a function
The current implementation supports a 'pointer' object which points to the currently highlighted menu item. We want to support highlighting the label of the menu item instead, e.g. with inverse video. In this case we will need to 'unhighlight' the old item and highlight the new one. As a first step, move the pointer logic into a function. This fixes a bug where the item is hidden when it should not be. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/boot/expo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/boot/expo.c b/test/boot/expo.c
index c0ef03b5911..453316ece7c 100644
--- a/test/boot/expo.c
+++ b/test/boot/expo.c
@@ -378,7 +378,7 @@ static int expo_object_menu(struct unit_test_state *uts)
ut_asserteq(-4, prev1->obj.dim.x);
ut_asserteq(menu->obj.dim.y + 32, prev1->obj.dim.y);
- ut_asserteq(false, prev1->obj.flags & SCENEOF_HIDE);
+ ut_asserteq(true, prev1->obj.flags & SCENEOF_HIDE);
expo_destroy(exp);