diff options
Diffstat (limited to 'windows/font.c')
-rw-r--r-- | windows/font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/windows/font.c b/windows/font.c index 246c3b713..ada54eef0 100644 --- a/windows/font.c +++ b/windows/font.c @@ -76,9 +76,9 @@ HFONT get_font(const plot_font_style_t *style) int nHeight = -10; - HDC hdc = GetDC(current_hwnd); + HDC hdc = GetDC(font_hwnd); nHeight = -MulDiv(style->size, GetDeviceCaps(hdc, LOGPIXELSY), 72 * FONT_SIZE_SCALE); - ReleaseDC(current_hwnd, hdc); + ReleaseDC(font_hwnd, hdc); HFONT font = CreateFont( nHeight, /* height */ |