expo: Make bounding-box calculation more flexible
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:34 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:32 +0000 (09:49 +0100)
commitbaaf0907345558db58982445579e7d445ee60f21
tree9986ada88d34db73a819bf3afe9cb076918d7b43
parentf04026a59f5384f32a452889fc199c06eaf1553e
expo: Make bounding-box calculation more flexible

In some cases it is useful to obtain more than just two bounding boxes
from a menu, e.g. to line up all descriptions vertically.

Use an array to obtain bounding-box information and calculate it
separately for each item.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/scene.c
boot/scene_internal.h
boot/scene_menu.c