[9.10ß1] DPI option breaks Configuration dialog

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

[9.10ß1] DPI option breaks Configuration dialog

Post by *Flint »

1. Set DPI to 110 in TC Configuration -> Fonts, press OK.
2. Restart TC and open the Configuration dialog.
3. (only 32-bit) The left column (list of pages) is squished vertically.
4. On the Fonts page the option DPI is unchecked, even though the value is still set to 110 (and greyed out), and it's impossible to reset it to default. Even when you check it, set back to 96, the dialog remains large. Unchecking the checkbox reverts the value back to 110 (and the dialog remains large). It's hard to explain in full details, the behavior becomes weirder the more I play with it. In the wincmd.ini new keys are being added, like:

Code: Select all

OverrideDPI110=96
OverrideDPI=120
OverrideDPI96=120
OverrideDPI120=110
I don't even know if this is normal…
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

3. Not confirmed, I'm on Windows 7 x64, default dpi=96. Can you post a linkt to a screenshot, please?
4. Confirmed.

It's odd that you get these many lines, it should only add
OverrideDPI96=110

This is to store the DPI value when the user switches to a different screen resolution and DPI value.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Original dialog (96 DPI, 32- and 64-bit)
32-bit after setting to 110 and reopening the dialog
32-bit after setting to 110, restarting TC and reopening the dialog
64-bit after setting to 110

You can see that 32-bit at first squishes the lines a little bit — each line becomes 1 pixel narrower. The font does not change, so the difference is not very noticable. However after TC restart, the font is changed to larger size, but the line height remains the same, and now the letters are cut off on the downside.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks a lot! So the font itself seems to be OK, just the line spacing is wrong.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 9.10 beta 2, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Look OK in β2. I didn't play with OS DPIs though…
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply