Commit 4abc3d72 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Don't remap DPI for font size in points when saving.

Points already take DPI into account. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9c57e23d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment