Re: gdi32/tests: Fix tests to not depend on 96 dpi
12 Oct
2008
12 Oct
'08
9:06 p.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.
6360
Age (days ago)
6360
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov