mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 01:33:23 -10:00
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.
14 lines
340 B
Makefile
14 lines
340 B
Makefile
# See build.sh: this harness links the shipping RetroArch objects with
|
|
# only main() replaced, so it needs the project's own build rather
|
|
# than a source list of its own.
|
|
TARGET := msgbox_layout_test
|
|
|
|
all:
|
|
@./build.sh
|
|
|
|
clean:
|
|
rm -f $(TARGET) retroarch_nomain.o retroarch_nomain.d \
|
|
harness_main.o harness_main.d
|
|
|
|
.PHONY: all clean
|