Alexandre Julliard : user32: Don' t remap DPI for font size in points when saving.
Alexandre Julliard
julliard at winehq.org
Thu Jun 21 18:37:28 CDT 2018
Module: wine
Branch: master
Commit: 4abc3d726ff6bdf2222d981e0d6f1e15c346893c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4abc3d726ff6bdf2222d981e0d6f1e15c346893c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jun 21 14:16:38 2018 +0200
user32: Don't remap DPI for font size in points when saving.
Points already take DPI into account.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/sysparams.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 0613015..28ebae6 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -1033,7 +1033,7 @@ static BOOL set_font_entry( union sysparam_all_entry *entry, UINT int_param, voi
/* zero pad the end of lfFaceName so we don't save uninitialised data */
ptr = memchrW( font.lfFaceName, 0, LF_FACESIZE );
if (ptr) memset( ptr, 0, (font.lfFaceName + LF_FACESIZE - ptr) * sizeof(WCHAR) );
- font.lfHeight = map_from_system_dpi( font.lfHeight );
+ if (font.lfHeight < 0) font.lfHeight = map_from_system_dpi( font.lfHeight );
if (!save_entry( &entry->hdr, &font, sizeof(font), REG_BINARY, flags )) return FALSE;
entry->font.val = font;
More information about the wine-cvs
mailing list