Commit bfcf92f1 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 0ce293a0
...@@ -1424,7 +1424,7 @@ static void test_SPI_SETDRAGFULLWINDOWS( void ) /* 37 */ ...@@ -1424,7 +1424,7 @@ static void test_SPI_SETDRAGFULLWINDOWS( void ) /* 37 */
#define test_reg_font( KEY, VAL, LF) \ #define test_reg_font( KEY, VAL, LF) \
{ LOGFONTA lfreg;\ { LOGFONTA lfreg;\
lffromreg( KEY, VAL, &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 )&&\ MulDiv( -(LF).lfHeight , 72, dpi) == lfreg.lfHeight )&&\
(LF).lfWidth == lfreg.lfWidth &&\ (LF).lfWidth == lfreg.lfWidth &&\
(LF).lfWeight == lfreg.lfWeight &&\ (LF).lfWeight == lfreg.lfWeight &&\
......
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