LMMS 1.2.2 Scaling on HiDPI

Having trouble with LMMS? Ask about it here.
Hi, I decided to try out LMMS on my laptop, and as always, Windows HiDPI scaling gave me some problems.
Please take a look at https://imgur.com/a/Q5oi2oI

I'm using a 17" laptop (2560*1600), running Windows 10 20H2. Windows scaling is set to 165%. Tested this on 125% too.

When 'Override High DPI scaling behavior' in Compatibility settings is set to 'Application', things are not scaled properly. 'About LMMS' window seems to be scaled properly, but windows inside the editor are not scaled at all. I hope there is a way to change the size of the font. Maybe I haven't found the way yet. Default Korean font just makes it uglier too.

When it's set to either 'System' or 'System(Enhanced)', Windows just makes it into a blurry mess.

I did some search on the internet but I haven't found a decent solution yet. I even tried to run the application under WSL and got some decent results in terms of scaling, but I had to deal with PulseAudio to get it working on Windows.
Kihwa wrote:
Mon Feb 01, 2021 9:55 am
Hi,
Hi, Welcome to the Forum Kihwa !
Here are all important links:
http://lmms.io/forum/viewtopic.php?f=1&t=4740
-A few rules and useful forum instructions
If you like to introduce yourself, to the community, go here:
http://lmms.io/forum/viewtopic.php?f=4&t=4480
Windows HiDPI scaling problems.
Unfortunately Qt that is used does a lousy scaling job.
I have eye-sight issues, and i hate the text on our UI.
I have managed to make a Style-sheet that at least scale some of the text better, but it is imo not sufficient.
Image
You are most welcome to try my style-sheet, you find a zip in my github repo, its MIT-licenced -Eg usage on own risk,
https://github.com/musikBear/lmms/blob/ ... ontCSS.zip
musikbear wrote: You are most welcome to try my style-sheet, you find a zip in my github repo, its MIT-licenced -Eg usage on own risk,
https://github.com/musikBear/lmms/blob/ ... ontCSS.zip
Thanks for your suggestion. I've tried to overwrite the existing style.css with yours, but I couldn't see difference. I checked that theme was set to right directory.

Meanwhile I tried some more experiments with WSL.
ArchWiki's HiDPI page(https://wiki.archlinux.org/index.php/HiDPI) has been a big help for me, and after adjusting some variables, I found out that

Code: Select all

export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCREEN_SCALE_FACTORS=1.65
did work for me.

Here are some side-by-side screenshots:

Image
Left: Windows 'Override High DPI scaling behavior' set to 'Application'
Right: WSL with VcXsrv

Both seem to be aware of display DPI since some texts are scaled.

Image
Left: Windows 'Override High DPI scaling behavior' set to 'Application'
Right: WSL with VcXsrv, QT_SCREEN_SCALE_FACTORS=1.65

Code: Select all

QT_AUTO_SCREEN_SCALE_FACTOR
needs to be set to 0, otherwise things get scaled twice.

Image
Left: Windows 'Override High DPI scaling behavior' set to 'System'
Right: WSL with VcXsrv, QT_SCREEN_SCALE_FACTORS=1.65

Desired scaling. Since scaling is done properly by Qt, font is not blurred.
Now small texts get readily readable(Check 템포/BPM. Korean characters are dense so this is a huge improvement)
However bitmap UI's are interpolated in different ways.

Now I'll have to find out how to apply those variables in Windows.