Huw Davies : user32/tests: Fix a few failures in DPI scaling mode.

Alexandre Julliard julliard at winehq.org
Tue Apr 11 15:31:03 CDT 2017


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Apr 11 14:08:52 2017 +0100

user32/tests: Fix a few failures in DPI scaling mode.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/sysparams.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/tests/sysparams.c b/dlls/user32/tests/sysparams.c
index 6f607d4..055060e 100644
--- a/dlls/user32/tests/sysparams.c
+++ b/dlls/user32/tests/sysparams.c
@@ -1424,7 +1424,7 @@ static void test_SPI_SETDRAGFULLWINDOWS( void )        /*     37 */
 #define test_reg_font( KEY, VAL, LF) \
 {   LOGFONTA lfreg;\
     lffromreg( KEY, VAL, &lfreg);\
-    ok( (lfreg.lfHeight < 0 ? (LF).lfHeight == lfreg.lfHeight :\
+    ok( (lfreg.lfHeight < 0 ? (LF).lfHeight == MulDiv( lfreg.lfHeight, dpi, real_dpi ) : \
                 MulDiv( -(LF).lfHeight , 72, dpi) == lfreg.lfHeight )&&\
         (LF).lfWidth == lfreg.lfWidth &&\
         (LF).lfWeight == lfreg.lfWeight &&\




More information about the wine-cvs mailing list