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

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-04-11 14:08:52 +01:00 committed by Alexandre Julliard
parent 0ce293a0d8
commit bfcf92f148
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&\