mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[GDI32_APITEST] Fix test on all versions of Windows at certain vertical resolutions (#8048)
* Use MulDiv to generate the result and negate that instead of dividing by a negative number, which can cause test failures.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user