[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: comctl32/tests: Fix couple of metrics tests that fail on some systems
From: Nikolay Sivov <nsivov () codeweavers ! com>
Date: 2015-03-31 8:06:54
Message-ID: 551A559E.2030504 () codeweavers ! com
[Download RAW message or body]
On 03/31/2015 11:05 AM, Dmitry Timoshkov wrote:
> Nikolay Sivov <nsivov@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.
>
Probably. I used what header code uses currently.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic