From 9571841eefd9fe9830c2efa3b1b6382e618445c8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 12 Feb 2013 17:42:46 +0000 Subject: forgotten xstatus name translation git-svn-id: http://svn.miranda-ng.org/main/trunk@3574 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/data.cpp | 2 +- plugins/MyDetails/src/frame.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/MyDetails/src') 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(""); + TCHAR *p = (tszXStatusName[0] != 0) ? TranslateTS(tszXStatusName) : TranslateT(""); 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); } -- cgit v1.2.3