Repository navigation
[Feature] Add aspect ratio selector for non-widescreen monitors - #339
Gitez-Spaghetti wants to merge 7 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
This pr seems unneeded [video] And your game will launch in 4:3 mode + will widen up for 5:4 monitors |
|
I would much rather have the 4:3 option to also dynamically scale similarly to the 16:9 option, would be significanly less code, and also less options for the users which would be better in this case to make playing the game easier, having an aspect ratio selector would be useless if the game auto-scales to any resolution anyways |
|
This is exactly what this PR is about. Unless something is wrong with my config, the current implementation only dynamically scale when widescreen is ON. When playing in 4:3 the game doesn't dynamically scale to the window's size. My implementation allows the screen to fit the window regardless of the aspect ratio (exactly what you're asking) with an easy way to switch between 16:9 and 4:3. When widescreen is on (but playing on a 5:4 monitor) the viewport does expand vertically, but the UI can be a bit tiny (on top of looking a bit odd). About my messy code, I tried making other changes (like making the game switch aspect ratio on the fly) and failed, but the fondations are here for people who want to try implementing features on top of it. When I'll get home I will take a few screenshots to demonstrate what I mean. |




Currently, the game doesn’t display properly on 4:3 or 5:4 monitors, since it is always rendered at 16:9.
This PR adds an aspect ratio selector to the F10 menu, which is applied on the next launch.
I also renamed the
force_16_9option toforce_aspect, since it now forces the currently selected aspect ratio rather than 16:9.Feedback is more than welcome!
Summary by CodeRabbit