Removed unnecessary USER call from GetFontMetrics. Fixes native USER.

oldstable
Ian Schmidt 1999-11-04 01:45:53 +00:00 committed by Alexandre Julliard
parent d11d6e2085
commit e04b3e9a02
1 changed files with 4 additions and 2 deletions

View File

@ -245,16 +245,18 @@ static void ReadFontInformation(
*/
static void GetFontMetrics(HFONT handle, LPTEXTMETRICA lptm)
{
HDC hdc = GetDC((HWND)0);
HDC hdc;
HFONT hOldFont;
hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);
hOldFont = (HFONT)SelectObject(hdc, handle);
GetTextMetricsA(hdc, lptm);
SelectObject(hdc, hOldFont);
ReleaseDC((HWND)0, hdc);
DeleteDC(hdc);
}
static inline void FixStockFontSize16(