From 3271362a26072223f985ab3bf3e3d73dd99440dd Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 25 Jun 2009 12:09:45 +0200 Subject: [PATCH] msi: The dialog units are based on a 12-point font size, despite the documentation. --- dlls/msi/dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 495e033e913..025a2274258 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -171,7 +171,7 @@ static HWND hMsiHiddenWindow; 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 ) @@ -2911,7 +2911,7 @@ static INT msi_dialog_get_sans_serif_height( HWND hwnd ) if (hdc) { 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 ); hFont = CreateFontIndirectW(&lf); if (hFont)