-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add desktop-fullscreen option and optionally decouple aspect ratio from window resolution. #204
base: master
Are you sure you want to change the base?
Add desktop-fullscreen option and optionally decouple aspect ratio from window resolution. #204
Conversation
…window resolution. Desktop Fullscreen: It was previously possible to run ironwail in desktop fullscreen mode, but only by manually setting a cvar. This change adds the ability to pick this display mode within the video settings menu. Decoupling Aspect Ratio: Previously in ironwail the window/fullscreen size always dictates the aspect ratio tha the game is renderred in. This is fine for windowed and exclusive fullscreen where you can set the specific resolution you want, however with desktop fullscreen, the window must be the same size that your operating system is outputting. Decoupling the aspect ratio allows the user specify a specific maximum aspect ratio to use in this circumstance. For example 4:3 on a standard 16:9 display, or 16:9 on an ultrawide display. The new vid_maxaspect cvar default to 0, which means auto (match window/fullscreen resolution).
Under some configurations where GL_NeedsSceneEffects and GL_NeedsPostprocess return different values the viewport offset was not configured correctly. This change addresses this issue.
I realize now that the desktop fullscreen feature may not be as important as I originally thought for these reasons:
There are still advantages of the implementation in this pull request though:
If it is preferable to remove the desktop fullscreen part of this pull request and just keep the aspect ratio changes, I can do that. Controlling aspect ratio independently of fullscreen resolution is desirable because on ultrawide monitors the UI stretches out to the edges and becomes hard to see. You can of course use an exclusive fullscreen mode with a specific resolution at the aspect ratio you desire, but this comes a lot of problems like slow alt+tabbing and possibly messing up other application window positions and sizes in Windows. |
e78c96b
to
42850da
Compare
This pull request introduces two improvements to the Video Options menu of Ironwail:
Desktop Fullscreen Option:
Decoupling Aspect Ratio from Window Resolution:
vid_maxaspect
, has been added, with a default value of 0 (auto, match window/fullscreen aspect ratio).