diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MyDetails/src/data.cpp | 2 | ||||
-rw-r--r-- | plugins/MyDetails/src/frame.cpp | 3 |
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);
}
|