UnityLauncherPro icon indicating copy to clipboard operation
UnityLauncherPro copied to clipboard

Multiple Screens with different DPI not properly supported

Open Mythique opened this issue 1 year ago • 4 comments

Hi,

I am using a two screen setup :

  • First one at 2560x1440 with a 125% DPI size (my main screen in the windows settings)
  • Second one at 1920x1080 with 100% DPI size

If the app is on the main screen, the text and UI is displayed properly. If I move the window to the second screen, the text and UI is blurry :

image

image

Mythique avatar Sep 26 '22 14:09 Mythique

ok confirmed that its happening, ill check for solutions to that.

workaround (to disable scaling completely for this app) image https://stackoverflow.com/a/73343871/5452781

unitycoder avatar Sep 26 '22 15:09 unitycoder

ok this seems to work on a quick test, ill commit it here later https://github.com/microsoft/WPF-Samples/blob/main/PerMonitorDPI/readme.md#enabling-per-monitor-dpi-for-your-app

unitycoder avatar Sep 26 '22 15:09 unitycoder

Thanks! It seems to have worked, I tested it with the dev branch, the UI is not blurry anymore.

Small issue though, the UI is being scaled at 125% on the screen where it should be 100%

Here is how it looks if both my screens are at 100% (how it should always look I guess) : image

And here how it looks like on the same screen (100% scaling for this one), if my other screen has a 125% scaling :

image

Mythique avatar Sep 27 '22 18:09 Mythique

ok noticed that now also. another issue is: depending on what display the window is closed, it saves that size into preferences and then opens with wrong size on another display next time.

Upgrading the project into dotnet 4.8 (or anything above 4.6.2 i guess) seems to help on that issue, then just need to fix the preferences loading correct window size, per monitor.

unitycoder avatar Sep 28 '22 11:09 unitycoder

available in main build now

unitycoder avatar Dec 22 '22 19:12 unitycoder