-
Notifications
You must be signed in to change notification settings - Fork 18
Instant fullscreen via video options screen #477
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
base: master
Are you sure you want to change the base?
Conversation
I think the fuzziness comes from fractional screen scaling. I played around with the OS display scale factor (150%, then 200%, then 100%) and fullscreen, and the problem disappeared. Now it's always tiny and not fuzzy on Linux. I can't reproduce the fuzziness anymore. In another PR, it would be nice if the graphics were pixel doubled, but fonts rendered at 2x on hi-res displays. |
virtual InputMode input_mode() const = 0; | ||
virtual int scale() const = 0; | ||
virtual Size screen_size() const = 0; | ||
virtual void set_fullscreen(const bool on) = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
isn’t meaningful in this context (function declaration argument).
I believe you can keep it in the function definition if you really want, but please remove it from the declarations.
Bug: When alt-Enter is used to toggle fullscreen, using the video options checkbox afterwards during the same launch will not apply the change until next launch. |
Sorry, I forgot what the status of this PR was. There was the matter of the function signature change and the bug you mentioned above. Were you aiming to merge this as-is or to refine further? |
I don't think this PR is ready to merge, because the different fullscreen methods can get out of sync. |
Clicking the "Fullscreen" checkbox in Options > Video now instantly toggles fullscreen mode, rather than waiting for the next game launch.
In macOS, the green fullscreen button in the window titlebar has the same effect.
In Linux, alt-Enter continues to toggle fullscreen as before.
I tested this using both macOS Sonoma 14.2.1 and Asahi Fedora Remix on a 16" MBP M1 Max.