summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-19 18:03:27 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-19 18:03:27 +0000
commit065cfd5dee2d8fbbfe2b8780d17871c090dd952b (patch)
tree0615dc16199e0a38ce6b26d7d1143b35e18c913c /plugins
parent94a648222a4f16327fb763f6575622ad5c7b9ff6 (diff)
fix for correct font selection
git-svn-id: http://svn.miranda-ng.org/main/trunk@4115 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/YAPP/src/popwin.cpp2
1 files changed, 2 insertions, 0 deletions
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)