comctl32/tests: Fix failures for 120DPI display

Nikolay Sivov bunglehead at gmail.com
Thu Jan 20 06:19:38 CST 2011


On 1/20/2011 13:40, Greg Geldorp wrote:
> ---
>   dlls/comctl32/tests/listview.c |    5 +++--
>   dlls/comctl32/tests/rebar.c    |    2 +-
>   dlls/comctl32/tests/treeview.c |    4 ++++
>   3 files changed, 8 insertions(+), 3 deletions(-)
> @@ -4163,7 +4163,8 @@ static void test_getcolumnwidth(void)
>       SendMessage(hwnd, LVM_INSERTITEMA, 0, (LPARAM)&itema);
>       ret = SendMessage(hwnd, LVM_GETCOLUMNWIDTH, 0, 0);
>       hdc = GetDC(hwnd);
> -    todo_wine expect(GetDeviceCaps(hdc, LOGPIXELSX), ret);
> +trace("ggeldorp %d %d\n", GetDeviceCaps(hdc, LOGPIXELSX), ret);
> +    todo_wine expect(((GetDeviceCaps(hdc, LOGPIXELSX) + 15) / 16) * 16, ret);
>       ReleaseDC(hwnd, hdc);
>       DestroyWindow(hwnd);
>   }
Minor thing, you forgot to remove a trace.





More information about the wine-devel mailing list