Fix: F10 menu and corner panels stretched on monitors that aren't 16:9 #115
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!115
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-115"
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?
@compl3xity1337 on GitHub · 2026-12-05 18:56 UTC · original
compl3xity1337:pr/overlay-aspect→main· +93 −18 · 1 files · 1 commits · merged 2026-12-05 19:11 UTCWhat
Since the 16:9 letterbox (#22), the window stretches the swap chain's buffer to the monitor's shape, and the title's picture is drawn narrower to make up for it (
planes::aspect_viewport). The overlay's panels (the F10 menu and the corner panels) were not drawn narrower, so on 21:9 or 16:10 monitors they came out stretched.Each panel is now squeezed by the same factor before it is copied in. The squeeze is a box filter, each pixel the mean of the ones it covers. The factor is part of the cached panel's key, so the panel is redrawn when the output changes. Corner insets come back from the drawing step together with the picture.
Testing
Tested in game: the F10 menu keeps its shape on a monitor that is not 16:9. With a 16:9 output the factor is 1 and nothing changes.
🤖 Generated with Claude Code