Commit e04b3e9a authored by Ian Schmidt's avatar Ian Schmidt Committed by Alexandre Julliard

Removed unnecessary USER call from GetFontMetrics. Fixes native USER.

parent d11d6e20
...@@ -245,16 +245,18 @@ static void ReadFontInformation( ...@@ -245,16 +245,18 @@ static void ReadFontInformation(
*/ */
static void GetFontMetrics(HFONT handle, LPTEXTMETRICA lptm) static void GetFontMetrics(HFONT handle, LPTEXTMETRICA lptm)
{ {
HDC hdc = GetDC((HWND)0); HDC hdc;
HFONT hOldFont; HFONT hOldFont;
hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);
hOldFont = (HFONT)SelectObject(hdc, handle); hOldFont = (HFONT)SelectObject(hdc, handle);
GetTextMetricsA(hdc, lptm); GetTextMetricsA(hdc, lptm);
SelectObject(hdc, hOldFont); SelectObject(hdc, hOldFont);
ReleaseDC((HWND)0, hdc); DeleteDC(hdc);
} }
static inline void FixStockFontSize16( static inline void FixStockFontSize16(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment