comctl32/tests: Fix couple of metrics tests that fail on some systems

Dmitry Timoshkov dmitry at baikal.ru
Tue Mar 31 03:05:32 CDT 2015


Nikolay Sivov <nsivov at codeweavers.com> wrote:

> +    /* estimate using stock font metrics */
> +    hdc = GetDC(0);
> +    hOldFont = SelectObject(hdc, GetStockObject (SYSTEM_FONT));
> +    GetTextMetricsA(hdc, &tm);
> +    SelectObject(hdc, hOldFont);
> +    ReleaseDC(0, hdc);

Probably DEFAULT_GUI_FONT should be used instead of SYSTEM, you really
don't want to see SYSTEM_FONT on the screen, or just use its metrics.

-- 
Dmitry.



More information about the wine-devel mailing list