summaryrefslogtreecommitdiff
path: root/plugins/MyDetails
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-02-12 17:42:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-02-12 17:42:46 +0000
commit9571841eefd9fe9830c2efa3b1b6382e618445c8 (patch)
tree278e4a170da5f1aaaeaa218a257378bb20b2a4f1 /plugins/MyDetails
parente6ef702cb79368407e6adaee593a31b45e9575da (diff)
forgotten xstatus name translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@3574 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails')
-rw-r--r--plugins/MyDetails/src/data.cpp2
-rw-r--r--plugins/MyDetails/src/frame.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp
index c14f25c337..5bfa0fa797 100644
--- a/plugins/MyDetails/src/data.cpp
+++ b/plugins/MyDetails/src/data.cpp
@@ -150,7 +150,7 @@ int Protocol::GetStatus()
lcopystr(status_name, tmp, SIZEOF(status_name));
}
else {
- TCHAR *p = (tszXStatusName[0] != 0) ? tszXStatusName : TranslateT("<no status name>");
+ TCHAR *p = (tszXStatusName[0] != 0) ? TranslateTS(tszXStatusName) : TranslateT("<no status name>");
if (tszXStatusMessage[0])
mir_sntprintf(status_name, SIZEOF(status_name), _T("%s: %s"), p, tszXStatusMessage);
else
diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp
index 6317432064..2922ff537e 100644
--- a/plugins/MyDetails/src/frame.cpp
+++ b/plugins/MyDetails/src/frame.cpp
@@ -194,12 +194,11 @@ void DeInitFrames()
int ReloadFont(WPARAM wParam, LPARAM lParam)
{
- LOGFONT log_font;
-
for (int i = 0 ; i < NUM_FONTS ; i++ ) {
if (hFont[i] != 0)
DeleteObject(hFont[i]);
+ LOGFONT log_font;
font_colour[i] = CallService(MS_FONT_GETT, (WPARAM)&font_id[i], (LPARAM)&log_font);
hFont[i] = CreateFontIndirect(&log_font);
}