Re: gdi32/tests: Fix tests to not depend on 96 dpi
Oct. 13, 2008
2:06 a.m.
"Detlef Riekenberg" <wine.dev(a)web.de> wrote:
@@ -101,7 +101,9 @@ static void test_world_transform(void)
if (is_win9x) { - expect_viewport_ext(hdc, 96, 96); + DWORD dpi; + dpi = GetDeviceCaps(hdc, LOGPIXELSY); + expect_viewport_ext(hdc, dpi, dpi);
This is still not correct, not all displays have the same resolution in all dimensions. The below one should be slightly better: expect_viewport_ext(hdc, GetDeviceCaps(hdc, LOGPIXELSX), GetDeviceCaps(hdc, LOGPIXELSY)); -- Dmitry.
6373
Age (days ago)
6373
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov