]> git.ipfire.org Git - thirdparty/u-boot.git/commit
expo: Separate dimensions from the bounding box
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:33 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:32 +0000 (09:49 +0100)
commitf04026a59f5384f32a452889fc199c06eaf1553e
treece4d093442b70f9ad64827d1c4880c5a5af4c714
parent8636da86a2fb5f5f1a571f6cb3f12c0e8c207698
expo: Separate dimensions from the bounding box

At present each object has a width and height and the bounding box is
implicit in that.

This is not flexible enough to handle objects which are larger than
their contents might need. For example, when centring a text object we
might want to have it stretch across the whole width of the display even
if the text itself does not need that much space.

Create a new 'dimensions' field and convert the existing width/height
into x1/y1 coordinates.

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