mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Removed unnecessary USER call from GetFontMetrics. Fixes native USER.
This commit is contained in:
parent
d11d6e2085
commit
e04b3e9a02
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user