diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-02-22 19:18:55 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-02-22 19:18:55 +0000 |
commit | 33e7c0ca025fff026fcb71cc628210de2cce4e56 (patch) | |
tree | 810ff0246860b437b7f8f2e8f7c95255b0a82c08 /plugins/MyDetails | |
parent | 6c3059993aca28a1d26ac35f496b9c258d64e785 (diff) |
- MyDetails: Fixed font settings (fixed #595)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8224 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails')
-rw-r--r-- | plugins/MyDetails/src/frame.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index 3d111368da..85bb1fab1f 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -67,6 +67,7 @@ HFONT hFont[NUM_FONTS]; COLORREF font_colour[NUM_FONTS];
// Defaults
+char *font_settings[] = { "NicknameFont", "AccountFont", "StatusFont", "StatusMessageFont", "ListeningToFont" };
TCHAR *font_names[] = { LPGENT("Nickname"), LPGENT("Account"), LPGENT("Status"), LPGENT("Status Message"), LPGENT("Listening To") };
char font_sizes[] = { 13, 8, 8, 8, 8 };
BYTE font_styles[] = { DBFONTF_BOLD, 0, 0, DBFONTF_ITALIC, DBFONTF_ITALIC };
@@ -239,9 +240,7 @@ int CreateFrame() _tcsncpy(font_id[i].backgroundName, LPGENT("Background"), SIZEOF(font_id[i].backgroundName));
_tcsncpy(font_id[i].backgroundGroup, LPGENT("My Details"), SIZEOF(font_id[i].backgroundGroup));
- char tmp[128];
- mir_snprintf(tmp, sizeof(tmp), "%sFont", font_names[i]);
- strncpy(font_id[i].prefix, tmp, SIZEOF(font_id[i].prefix));
+ strncpy(font_id[i].prefix, font_settings[i], SIZEOF(font_id[i].prefix));
font_id[i].deffontsettings.colour = font_colors[i];
font_id[i].deffontsettings.size = -MulDiv(font_sizes[i], GetDeviceCaps(hdc, LOGPIXELSY), 72);
|