summaryrefslogtreecommitdiff
path: root/windows/font.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-10-14 19:33:00 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-10-14 19:33:00 +0000
commit43029944aea1d3655c675f86d0874d620f65b885 (patch)
tree3de6520f7eb9a64de74746f832970e7c2bf7d0ce /windows/font.c
parent1dbbbaf64ad0c8e3cd81ea7453f091f3bb4c9075 (diff)
downloadnetsurf-43029944aea1d3655c675f86d0874d620f65b885.tar.gz
netsurf-43029944aea1d3655c675f86d0874d620f65b885.tar.bz2
fix thumbnailing and localhistory
svn path=/trunk/netsurf/; revision=10885
Diffstat (limited to 'windows/font.c')
-rw-r--r--windows/font.c4
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 */