gdi32/tests: Fix tests to not depend on 96 dpi

Dmitry Timoshkov dmitry at codeweavers.com
Sun Oct 12 21:06:52 CDT 2008


"Detlef Riekenberg" <wine.dev at 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.



More information about the wine-devel mailing list