diff --git a/modules/rostests/apitests/gdi32/SetWindowExtEx.c b/modules/rostests/apitests/gdi32/SetWindowExtEx.c index e55c993eda6..a61c64bc886 100644 --- a/modules/rostests/apitests/gdi32/SetWindowExtEx.c +++ b/modules/rostests/apitests/gdi32/SetWindowExtEx.c @@ -178,7 +178,7 @@ void Test_SetWindowExtEx() /* Check the viewport now, should not be the same */ GetViewportExtEx(hDC, &ViewportExt); ok_long(ViewportExt.cx, GetDeviceCaps(GetDC(0), VERTRES)); - ok_long(ViewportExt.cy, -GetDeviceCaps(GetDC(0), VERTRES) / 3); + ok_long(ViewportExt.cy, -MulDiv(GetDeviceCaps(GetDC(0), VERTRES), 1, 3)); /* again isotropic mode with 1:3 res */ SetViewportExtEx(hDC, 6000, 3000, 0);