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

sdl: Directly use Windows DPI scaling hint, not SDL #2730

Merged
merged 3 commits into from Jun 17, 2023

Conversation

BreakPoints
Copy link
Contributor

Turns out I PR'd the wrong change. The SDL hint still required us to handle some changes with SDL_GetWindowSize, etc. Haven't figured out all the changes needed but just using the Windows level hint directly disables OS scaling and SDL scaling.

I tripped up as the SDL scaling still resulted in a sharp image but the pixels were nearest neighbour scaled which lead to an inconsistent blocky image.

Am I fine to just leave an OS specific call here? Linux compile didn't fail for me but maybe it should be hidden behind an OS check?

Fixes #2699
(for real this time)

@OpenGOALBot
Copy link
Collaborator

Can one of the admins verify this patch?

@BreakPoints BreakPoints changed the title sdl: Directly use Windows hint, not SDL sdl: Directly use Windows DPI scaling hint, not SDL Jun 15, 2023
@BreakPoints
Copy link
Contributor Author

BreakPoints commented Jun 15, 2023

Yeah, okay, CI shows it needs to be behind a check

@xTVaser
Copy link
Member

xTVaser commented Jun 17, 2023

ok to test

@xTVaser xTVaser merged commit 1512c6b into open-goal:master Jun 17, 2023
8 checks passed
@BreakPoints BreakPoints deleted the sdl-scaling2 branch June 17, 2023 18:16
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.

SDL Regression - Wrong Fullscreen Resolution Chosen at High DPI
4 participants