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:
parent
0ce293a0d8
commit
bfcf92f148
|
@ -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 &&\
|
||||||
|
|
Loading…
Reference in New Issue