fix(menu): keep the FPS counter off the banner on a window just wider than 16:9 #1545
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1545
Loading…
Reference in a new issue
No description provided.
Delete branch "fps-counter-banner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In a normal 1280x720 window, the FPS counter is drawn on top of the menu's tabs while the menu is open.
The game area of such a window, without its title bar, is about 1278x690: a little wider than 16:9. Since #1459, a window wider than 16:9 draws the menu in a centred 16:9 column and moves the counter to the window's top corner, beside the banner. On a window only a little wider, the column covers almost the whole width, so the corner is still over the banner. Now the counter moves to the corner only when it fits beside the column; otherwise it stays under the banner, as on 16:9. Real ultrawide windows (2560x1080, 3440x1440, 5120x1440) are unchanged.
(1280x720 window, Menu size Large, Gameplay tab.)
How it was tested:
tests/run_all.py(all pass excepttests/test_linux_update.py, which fails the same way on main), the Linux build and the Windows DLL cross-build, and headless runs in 1280x720 and 1920x1080 windows and at 2560x1080, 3440x1440 and 5120x1440.