Commit 71bb8c5e authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Properly fixup font system parameters with positive height.

parent 4adfb787
......@@ -915,9 +915,9 @@ static BOOL get_font_entry( union sysparam_all_entry *entry, UINT int_param, voi
switch (load_entry( &entry->hdr, &font, sizeof(font) ))
{
case sizeof(font):
entry->font.val = font;
if (font.lfHeight > 0) /* positive height value means points ( inch/72 ) */
font.lfHeight = -MulDiv( font.lfHeight, get_display_dpi(), 72 );
entry->font.val = font;
break;
case sizeof(LOGFONT16): /* win9x-winME format */
SYSPARAMS_LogFont16To32W( (LOGFONT16 *)&font, &entry->font.val );
......
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