Commit 3271362a authored by Alexandre Julliard's avatar Alexandre Julliard

msi: The dialog units are based on a 12-point font size, despite the documentation.

parent 395e4110
...@@ -171,7 +171,7 @@ static HWND hMsiHiddenWindow; ...@@ -171,7 +171,7 @@ static HWND hMsiHiddenWindow;
static INT msi_dialog_scale_unit( msi_dialog *dialog, INT val ) static INT msi_dialog_scale_unit( msi_dialog *dialog, INT val )
{ {
return (dialog->scale * val + 5) / 10; return MulDiv( val, dialog->scale, 12 );
} }
static msi_control *msi_dialog_find_control( msi_dialog *dialog, LPCWSTR name ) static msi_control *msi_dialog_find_control( msi_dialog *dialog, LPCWSTR name )
...@@ -2911,7 +2911,7 @@ static INT msi_dialog_get_sans_serif_height( HWND hwnd ) ...@@ -2911,7 +2911,7 @@ static INT msi_dialog_get_sans_serif_height( HWND hwnd )
if (hdc) if (hdc)
{ {
memset( &lf, 0, sizeof lf ); memset( &lf, 0, sizeof lf );
lf.lfHeight = MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72); lf.lfHeight = MulDiv(12, GetDeviceCaps(hdc, LOGPIXELSY), 72);
strcpyW( lf.lfFaceName, szSansSerif ); strcpyW( lf.lfFaceName, szSansSerif );
hFont = CreateFontIndirectW(&lf); hFont = CreateFontIndirectW(&lf);
if (hFont) if (hFont)
......
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