Inter line change after moving back from high DPI monitor
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 18
- Joined: 2009-08-27, 14:51 UTC
Inter line change after moving back from high DPI monitor
HI,
TC 9.10
I've got 3 monitors, 2 of them with 96DPI, the third - high DPI ( not sure exactly which DPI itis, but it's 4kscreen on 15''laptop). The main monitor is 96DPI.
Sequence is like this:
1. Start TC on main ( 96DPI ) display.
2. Move to 4K (High DPI) display. Font is changed, everything feels good.
3. Move window back to main monitor. Font is adjusted properly, but inter-line distance in file panel gets bigger.
Good picture ( beffore any movements )
Image: https://imgur.com/a/IKdf7
Bad picture ( after moving to high DPI monitor and back )
Image: https://imgur.com/a/CC1aB
Just in case my font settings
Image: https://imgur.com/a/UQhJc
C:\Windows\system32>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.15063 N/A Build 15063
TC 9.10
I've got 3 monitors, 2 of them with 96DPI, the third - high DPI ( not sure exactly which DPI itis, but it's 4kscreen on 15''laptop). The main monitor is 96DPI.
Sequence is like this:
1. Start TC on main ( 96DPI ) display.
2. Move to 4K (High DPI) display. Font is changed, everything feels good.
3. Move window back to main monitor. Font is adjusted properly, but inter-line distance in file panel gets bigger.
Good picture ( beffore any movements )
Image: https://imgur.com/a/IKdf7
Bad picture ( after moving to high DPI monitor and back )
Image: https://imgur.com/a/CC1aB
Just in case my font settings
Image: https://imgur.com/a/UQhJc
C:\Windows\system32>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.15063 N/A Build 15063
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately I cannot reproduce it.
Please right click on the desktop and choose the second menu item from the bottom. It should be something like "Display settings".
Then please report for each screen from left to right
1. The screen resolution (e.g. 1920x1080)
2. The DPI value (e.g. 96)
3. Which of the screens from the left is the main screen
Please also try to log out (via user icon in the start menu) and back in, this often fixes screen scaling problems.
Please right click on the desktop and choose the second menu item from the bottom. It should be something like "Display settings".
Then please report for each screen from left to right
1. The screen resolution (e.g. 1920x1080)
2. The DPI value (e.g. 96)
3. Which of the screens from the left is the main screen
Please also try to log out (via user icon in the start menu) and back in, this often fixes screen scaling problems.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Please reply! I couldn't reproduce your problem so far.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 18
- Joined: 2009-08-27, 14:51 UTC
-
- Junior Member
- Posts: 18
- Joined: 2009-08-27, 14:51 UTC
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Of course not - when all screens use the same scale factor, TC doesn't need to resize its window.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 18
- Joined: 2009-08-27, 14:51 UTC
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Nice to hear that - I didn't really expect that my change would work! All I do is call an additional "InvalidateRect" to refresh the window when receiving a WM_DPICHANGE message. This should redraw the main window and the two file panels.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 18
- Joined: 2009-08-27, 14:51 UTC