Project

General

Profile

Actions

Emulator Issues #12282

closed

[Feature request] Per-monitor DPI awareness

Added by danileon95 over 3 years ago. Updated over 3 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Currently if your main monitor has 100% DPI scaling while your secondary monitor has 125% scaling, and you start Dolphin in the main monitor, then drag it to the secondary one, it will look blurry. This means it's not per-monitor DPI aware, which is sad :(

It would be cool if Dolphin was per-monitor DPI aware.

Actions #1

Updated by danileon95 over 3 years ago

I should have specified my OS. This is on Windows 10.

not like there's any real support for fractional per monitor DPI scale on linux lul

Actions #2

Updated by Techjar over 3 years ago

I thought this was already a thing.

Actions #3

Updated by danileon95 over 3 years ago

Techjar wrote:

I thought this was already a thing.

I thought so too, but this is how dolphin looks after dragging it from a 100% scaling monitor to a 125% scaling monitor:

It's definitely DPI aware, because if I start it directly in the monitor that has 125% scaling (by setting that one as the main monitor), then it will look properly. But if I drag it to the monitor with 100% scaling, it will look blurry.

Actions #4

Updated by Techjar over 3 years ago

Hmm. Yeah I don't know how that stuff is meant to be handled anyways. Like what should happen if the window is between monitors? And I dunno if this is solvable on our end, it may be up to the Qt devs.

Actions #5

Updated by danileon95 over 3 years ago

Techjar wrote:

Hmm. Yeah I don't know how that stuff is meant to be handled anyways. Like what should happen if the window is between monitors? And I dunno if this is solvable on our end, it may be up to the Qt devs.

If the window is between monitors, it will use the scaling of the monitor that has a higher percentage of the window on-screen. So if 51% of the window is in monitor A, it will use scaling of monitor A. (note: I haven't "confirmed" this by looking at any code, but by playing around with it with a per-monitor DPI aware program, it's obvious that this is what happens)

There are many programs that already handle this case. Firefox is an easy example. Per-monitor DPI awareness is a relatively new thing, though. I believe it was "properly" introduced in the Windows 10 Creators Update (1703), as per this documentation:
https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows

Actions #6

Updated by danileon95 over 3 years ago

According to this Qt documentation, Qt already supports per-monitor DPI awareness:

https://doc.qt.io/qt-5/highdpi.html

Actions #7

Updated by Techjar over 3 years ago

Yeah okay, so it would be working then. What version are you using?

Actions #8

Updated by MayImilae over 3 years ago

This is indeed already a thing! As we covered here on the Progress Report, the QT 5.14.1 update brought this feature. Try 5.0-11655 or newer and it will be resolved.

Actions #9

Updated by MayImilae over 3 years ago

  • Status changed from New to Invalid

Checked latest master (5.0-12705) and mixed DPI support is handled correctly. Please update and it'll be resolved.

Actions #10

Updated by danileon95 over 3 years ago

MayImilae wrote:

This is indeed already a thing! As we covered here on the Progress Report, the QT 5.14.1 update brought this feature. Try 5.0-11655 or newer and it will be resolved.

But I'm running 5.0-12665...

I'll try updating later (I'm in the middle of converting my collection to .rvz) but I doubt it would make a difference if it was introduced in 11655.

It's definitely not working for me. Not sure why.

Actions #11

Updated by MayImilae over 3 years ago

Well, I don't know what to tell you. I just gave it another try and it's working perfectly fine for me. I even set one of my displays to non-scaled and tried it, and when dragged to it Dolphin became non-scaled and sharp as it should, and it switched back to 200% when I dragged it back to my main monitor. It must be something on your end. ┐(´-`)┌

Actions #12

Updated by Techjar over 3 years ago

Are you sure your Windows 10 is actually up to date?

Actions #13

Updated by danileon95 over 3 years ago

Yes, my Windows 10 is up to date, it's Windows 10 2004. Dolphin is the only program that doesn't handle per-monitor DPI on my end. Firefox does, the Windows explorer does, Chrome does, Discord does, Steam does...

I'll experiment with it a bit more later / tomorrow and update this issue. Thanks

Actions #14

Updated by MayImilae over 3 years ago

Do you have any compatibility modes and/or DPI overriding configured for Dolphin in Windows? That could make it do this.

Actions #15

Updated by danileon95 over 3 years ago

MayImilae wrote:

Do you have any compatibility modes and/or DPI overriding configured for Dolphin in Windows? That could make it do this.

No, I checked before opening the issue :(

Also, changing the DPI setting of the display (rather than dragging it across displays) also makes it look blurry.

Actions

Also available in: Atom PDF