expo: Support rendering multiple lines of text
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:42 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:32 +0000 (09:49 +0100)
commit03f9ce815cbba660bb4c8e7cd28cfc19219631c8
treeca2e859d84c856306b5798eca216ef3f2d108a33
parentb62a8cfbb6d365c650f64396963becf192b5255a
expo: Support rendering multiple lines of text

Use the measurement info to write each line of text separately, thus
respecting word-wrapping and newlines.

Fix up the comment for scene_obj_render() while we are here.

Since a lineedit does not support alignment, add a special case to just
display the text if there is no measurement. This happens assuming the
lineedit is initially empty.

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