user32: Don't remap DPI for font size in points when saving.
Points already take DPI into account. Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9c57e23d9b
commit
4abc3d726f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue