summaryrefslogtreecommitdiff
path: root/yapp/popups2.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-12-13 00:29:12 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-12-13 00:29:12 +0000
commit3fb5f8dface90d14b4719b092c09fff095f014c0 (patch)
tree552dc962423e87b5596af48040df39198ce6199f /yapp/popups2.cpp
parent3da123901eb43f8358daa98993fa2fead3852e56 (diff)
Fixes for ANSI version
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@582 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/popups2.cpp')
-rw-r--r--yapp/popups2.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/yapp/popups2.cpp b/yapp/popups2.cpp
index 53b45e9..cdd7eea 100644
--- a/yapp/popups2.cpp
+++ b/yapp/popups2.cpp
@@ -72,8 +72,9 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
}
-int ReloadFont(WPARAM wParam, LPARAM lParam) {
-
+int ReloadFont(WPARAM wParam, LPARAM lParam)
+{
+#ifdef _UNICODE
if(ServiceExists(MS_FONT_GETW)) {
LOGFONTW log_font;
if(hFontFirstLine) DeleteObject(hFontFirstLine);
@@ -90,7 +91,9 @@ int ReloadFont(WPARAM wParam, LPARAM lParam) {
colBorder = CallService(MS_COLOUR_GETW, (WPARAM)&colour_id_borderw, 0);
colSidebar = CallService(MS_COLOUR_GETW, (WPARAM)&colour_id_sidebarw, 0);
colTitleUnderline = CallService(MS_COLOUR_GETW, (WPARAM)&colour_id_titleunderlinew, 0);
- } else {
+ } else
+#endif
+ {
LOGFONTA log_font;
if(hFontFirstLine) DeleteObject(hFontFirstLine);
colFirstLine = CallService(MS_FONT_GET, (WPARAM)&font_id_firstline, (LPARAM)&log_font);