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

Alexandre Julliard julliard at winehq.org
Thu Jun 25 08:13:58 CDT 2009


Module: wine
Branch: master
Commit: 3271362a26072223f985ab3bf3e3d73dd99440dd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3271362a26072223f985ab3bf3e3d73dd99440dd

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jun 25 12:09:45 2009 +0200

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

---

 dlls/msi/dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 495e033..025a227 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)




More information about the wine-cvs mailing list