Skip to content
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

Fix DPI scaling issues on Windows (OpenGL) #667

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Conversation

GhostlyDark
Copy link
Contributor

Adds an SDL hint to address DPI scaling issues on Windows when using OpenGL, where the window size can appear too large. This can also help with the resolution in general, making things look less crunchy (200% DPI, 100% internal resolution).

before
image

after
Clipboard_09-01-2024_01

@KiritoDv
Copy link
Contributor

KiritoDv commented Sep 1, 2024

It could be me but the before looks better

@GhostlyDark
Copy link
Contributor Author

GhostlyDark commented Sep 1, 2024

It could be me but the before looks better

On the second screenshot (SDL2 hint active) the resolution on screen with the exact same settings is essentially higher.
If you think the first screenie looks better because of the larger UI...it's not supposed to be this big. DX11 looks pretty much exactly like OpenGL does with the hint, so I don't understand how this can be perceived as a downgrade.

Clipboard_09-01-2024_02

@Kenix3 Kenix3 merged commit 0302eab into Kenix3:main Sep 14, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants