• Zhiyi Zhang's avatar
    winecfg: Don't convert font height to points when saving system font metrics. · 5cebefc2
    Zhiyi Zhang authored
    Fix tooltip font size becomes smaller after clicking the apply button in Desktop Integration tab.
    For example, the original non-client area tooltip font lfHeight is -11. 11 pixels is 8 points in 96
    DPI. Setting font size to 8 points to SPI_SETNONCLIENTMETRICS will make SPI_GETNONCLIENTMETRICS
    report lfHeight as 8. With lfHeight being 8, CreateFontIndirectW() creates a smaller font. This
    behavior is added by 5b8fdb97. I assume the intention was to save font size in a DPI-independent way.
    However, when lfHeight is negative, lfHeight will still be scaled back to 96 DPI before saving it to
    registry and scaled to system DPI when it's read from registry. So I think converting to points is
    unnecessary.
    Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    5cebefc2
Name
Last commit
Last update
..
Makefile.in Loading commit data...
about.c Loading commit data...
appdefaults.c Loading commit data...
audio.c Loading commit data...
drive.c Loading commit data...
driveui.c Loading commit data...
idw_testsound.wav Loading commit data...
libraries.c Loading commit data...
logo.ico Loading commit data...
logo.svg Loading commit data...
main.c Loading commit data...
resource.h Loading commit data...
theme.c Loading commit data...
winecfg.c Loading commit data...
winecfg.h Loading commit data...
winecfg.ico Loading commit data...
winecfg.man.in Loading commit data...
winecfg.manifest Loading commit data...
winecfg.rc Loading commit data...
winecfg.svg Loading commit data...
x11drvdlg.c Loading commit data...