From 065cfd5dee2d8fbbfe2b8780d17871c090dd952b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Mar 2013 18:03:27 +0000 Subject: fix for correct font selection git-svn-id: http://svn.miranda-ng.org/main/trunk@4115 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAPP/src/popwin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/YAPP/src/popwin.cpp b/plugins/YAPP/src/popwin.cpp index 36cd3f6d30..15b48f7f31 100644 --- a/plugins/YAPP/src/popwin.cpp +++ b/plugins/YAPP/src/popwin.cpp @@ -588,6 +588,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa int *pHeight = (int *)wParam; HDC hdc = GetDC(hwnd); SIZE size; + HFONT hOldFont = (HFONT)GetCurrentObject(hdc, OBJ_FONT); // time_height + width if (options.time_layout != PT_NONE) { @@ -644,6 +645,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa mir_free(text); } + SelectObject(hdc, hOldFont); ReleaseDC(hwnd, hdc); if (options.time_layout == PT_WITHAV && options.av_layout != PAV_NONE) -- cgit v1.2.3