[PATCH] gdi32/tests: Fix tests to not depend on 96 dpi
Detlef Riekenberg
wine.dev at web.de
Sun Oct 12 19:15:27 CDT 2008
---
dlls/gdi32/tests/mapping.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/mapping.c b/dlls/gdi32/tests/mapping.c
index 210f783..e81e35f 100644
--- a/dlls/gdi32/tests/mapping.c
+++ b/dlls/gdi32/tests/mapping.c
@@ -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);
expect_window_ext(hdc, 254, -254);
}
else
--
1.5.4.3
--=-fqdJmiok+g+U8CdccTIG--
More information about the wine-patches
mailing list