Commit Graph
4 Commits
Author SHA1 Message Date
LibretroAdmin 9365458a10 menu: measure a firmware path's underline once
The missing firmware dialog underlines each file's path, and measured
the path and the text before it with the font for every line of it in
every frame the box was up. The width and offset are now kept with the
line and the font - its size and the font generation - they were
measured in, for the few lines such a box has, and the frames after
the first draw the underline from them.

msgbox_layout's firmware lane draws the dialog in Ozone, XMB and
MaterialUI and checks the one underline under the path, not under its
number, as wide as the path, in the frames drawn from what was kept as
well as the first.
2026-11-16 12:42:36 +01:00
LibretroAdmin 66205c7f73 samples/menu: msgbox_layout checks the input dialog's caret
The caret lane opens the input dialog in XMB and MaterialUI with 40
words typed, wrapped over several lines, at three screen sizes, and
puts the cursor at the start, inside a word, at the start of each
line the wrap made, on the space before it and at the end. The caret
must be drawn on the line of the character after the cursor, at its
left edge - for a space the wrap made a line end, after the line it
ends. The harness now also records the quads the drivers draw, the
caret being the one 2 px wide.

With the caret placed by wrapping the text up to the cursor again, as
both drivers did, the lane fails: before a word the wrap moved to the
next line, the caret sat at the end of the line above.
2026-11-16 12:35:59 +01:00
LibretroAdmin 0e2168d8b1 samples/menu: msgbox_layout counts RGUI's uploads of a box
The rgui redraw lane runs RGUI as the runloop does - the box's text
handed over, the render, the frame, the framebuffer handed to the
video driver - and counts the uploads: one when the box comes up, one
for a newer box in its place, for the lit button moving and for new
text, one when it goes, and none for the frames between. With RGUI
redrawing the box every iteration it was up, as it did, every frame
was an upload.
2026-11-16 12:27:02 +01:00
LibretroAdmin e6240e7d35 samples/menu: msgbox_layout, a confirm box in Ozone, XMB and MaterialUI
Draws a Cancel/OK box in each of the three drivers against the null
video driver, through a display driver and font of the harness's that
record every piece of text drawn, where it went and how wide it is.
The box's text is numbered words no other menu text has, so its lines
can be told apart. Each lane checks that the words are all drawn, in
order, on the screen, a line height apart and above the buttons; that
the next frame - drawn from the wrap the driver kept - is the same;
that a frame at another size is laid out as one made afresh at that
size; and that a frame back at the first size is the first again.

The short lane fits the screen; the tall one fills the box on a small
screen, where Ozone and MaterialUI cut the text short. It found Ozone
drawing nothing at all of a box taller than the screen, and with a
driver's wrap kept across a size change, the box laid out for the
size before.
2026-11-16 12:02:30 +01:00