UnityLauncherPro
UnityLauncherPro copied to clipboard
Multiple Screens with different DPI not properly supported
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 :
ok confirmed that its happening, ill check for solutions to that.
workaround (to disable scaling completely for this app) https://stackoverflow.com/a/73343871/5452781
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
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) :
And here how it looks like on the same screen (100% scaling for this one), if my other screen has a 125% scaling :
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.
available in main build now