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
New High DPI Support API is needed #2119
Comments
As far as I can tell, SDL2 on Windows still has no HighDPI support - does anyone (@ericwa or @slouken ?) know what happened to this? Is there any chance projects using SDL will ever be able to get rid of their custom workarounds? |
I'll take a look at dusting off my PR this weekend, bringing it up to date with current sdl2 etc. |
Awesome, thanks a lot! |
@ericwa Have any advancements been made on this front yet? I'm willing to try dusting the patch off too if necessary. |
@PJB3005 Sorry for the delay, here's the current status: My previous work is in a branch called Overall, it's working OK, I think I've ironed out most of the issues. My plan for a while has been to split it into 2 separate patches which I'm hoping to make PR's for soon:
|
The hint allows setting a specific DPI awareness ("unaware", "system", "permonitor", "permonitorv2"). This is the first part of High-DPI support on Windows ( libsdl-org#2119 ). It doesn't implement a virtualized SDL coordinate system, which will be addressed in a later commit. (This hint could be useful for SDL apps that want 1 SDL unit = 1 pixel, though.) Detecting and behaving correctly under per-monitor V2 (calling AdjustWindowRectExForDpi where needed) should fix the following issues: libsdl-org#3286 libsdl-org#4712
The hint allows setting a specific DPI awareness ("unaware", "system", "permonitor", "permonitorv2"). This is the first part of High-DPI support on Windows ( #2119 ). It doesn't implement a virtualized SDL coordinate system, which will be addressed in a later commit. (This hint could be useful for SDL apps that want 1 SDL unit = 1 pixel, though.) Detecting and behaving correctly under per-monitor V2 (calling AdjustWindowRectExForDpi where needed) should fix the following issues: #3286 #4712
SDLBugzilla commentedFeb 11, 2021
•
edited
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.1
Reported for operating system, platform: All, All
Comments on the original bug report:
On 2016-03-01 19:08:34 +0000, Yuya Kumagai wrote:
On 2017-08-12 04:34:18 +0000, Sam Lantinga wrote:
On 2017-08-12 04:40:58 +0000, Alex Szpakowski wrote:
On 2017-08-12 20:00:57 +0000, Eric Wasylishen wrote:
On 2017-08-27 23:14:23 +0000, Alex Szpakowski wrote:
On 2017-08-27 23:16:57 +0000, Alex Szpakowski wrote:
On 2017-09-04 07:25:37 +0000, Alex Szpakowski wrote:
On 2017-09-05 07:27:45 +0000, Eric Wasylishen wrote:
On 2017-10-26 23:04:06 +0000, Eric Wasylishen wrote:
On 2018-10-24 11:13:08 +0000, Ellie wrote:
On 2018-10-24 11:16:26 +0000, Ellie wrote:
On 2018-10-24 11:27:43 +0000, Ellie wrote:
On 2019-10-15 04:19:51 +0000, Anthony Pesch wrote:
On 2019-10-15 23:45:20 +0000, Alex Szpakowski wrote:
On 2019-10-15 23:47:34 +0000, Alex Szpakowski wrote:
On 2019-10-19 20:06:40 +0000, Sam Lantinga wrote:
On 2019-10-20 11:47:54 +0000, Ellie wrote:
On 2019-10-20 20:47:06 +0000, Alex Szpakowski wrote:
On 2019-10-21 07:52:30 +0000, Eric Wasylishen wrote:
On 2019-10-21 14:46:46 +0000, Alex Szpakowski wrote:
The text was updated successfully, but these errors were encountered: