[PATCH] gdi32/tests: Fix tests to not depend on 96 dpi

Detlef Riekenberg wine.dev at web.de
Mon Oct 13 18:01:51 CDT 2008


---
 dlls/gdi32/tests/mapping.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/tests/mapping.c b/dlls/gdi32/tests/mapping.c
index 210f783..7e85ca9 100644
--- a/dlls/gdi32/tests/mapping.c
+++ b/dlls/gdi32/tests/mapping.c
@@ -101,7 +101,7 @@ static void test_world_transform(void)
 
     if (is_win9x)
     {
-        expect_viewport_ext(hdc, 96, 96);
+        expect_viewport_ext(hdc, GetDeviceCaps(hdc, LOGPIXELSX), GetDeviceCaps(hdc, LOGPIXELSY));
         expect_window_ext(hdc, 254, -254);
     }
     else
-- 
1.5.4.3


--=-EIE0Gq5txtXdML3jM1/2--




More information about the wine-patches mailing list