summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MyDetails/src/frame.cpp')
-rw-r--r--plugins/MyDetails/src/frame.cpp3
1 files changed, 1 insertions, 2 deletions
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);
}