diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-19 18:03:27 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-19 18:03:27 +0000 |
commit | 065cfd5dee2d8fbbfe2b8780d17871c090dd952b (patch) | |
tree | 0615dc16199e0a38ce6b26d7d1143b35e18c913c /plugins/YAPP/src | |
parent | 94a648222a4f16327fb763f6575622ad5c7b9ff6 (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/YAPP/src')
-rw-r--r-- | plugins/YAPP/src/popwin.cpp | 2 |
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)
|