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

Add better HDPI support #1490

Open
rmarquis opened this issue Jun 10, 2020 · 1 comment
Open

Add better HDPI support #1490

rmarquis opened this issue Jun 10, 2020 · 1 comment
Labels
cat: general Category engine (client/server) P3: Normal Priority 3 📝 Task Indirectly related to code: libs update, documentation
Milestone

Comments

@rmarquis
Copy link
Contributor

rmarquis commented Jun 10, 2020

Currently, on windows using HDPI and font scaling the game windows is also scaled, making its content blurry. This can be disabled by right clicking on the exe and explicitly disabling HDPI in the compatibility tab.

Fixing this on windows automatically requires some platform dependent call: SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE).

See:

There is a work-in-progress patch in SDL, that should make it easier/straightforward to disable HDPI stretching without any platform dependent API call, see:

This isn't available in the latest stable version of SDL yet.

Status on other platforms - especially Linux, is unknow.
For macOS, see


Until SDL handles this, as a temporary workaround, we can

highdpi

@rmarquis rmarquis added P3: Normal Priority 3 📝 Task Indirectly related to code: libs update, documentation cat: general Category engine (client/server) labels Jun 10, 2020
@rmarquis rmarquis added this to the 2.77 milestone Jun 10, 2020
@jackeri jackeri modified the milestones: 2.77, 2.78 Mar 1, 2021
@rmarquis rmarquis modified the milestones: 2.78, 2.79 Sep 28, 2021
@rmarquis
Copy link
Contributor Author

As of now, SDL still doesn't support HDPI scaling natively (see libsdl-org/SDL#2119), but some code example of workaround can be found here:

@jackeri jackeri modified the milestones: 2.79, 2.80 Dec 23, 2021
@Aranud Aranud modified the milestones: 2.80, Future Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat: general Category engine (client/server) P3: Normal Priority 3 📝 Task Indirectly related to code: libs update, documentation
Projects
None yet
Development

No branches or pull requests

3 participants