summaryrefslogtreecommitdiff
path: root/plugins/Alarms
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-25 23:10:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-25 23:10:36 +0300
commita411a7391bb879db8da398f067245a13c7fa7aee (patch)
tree4b2c76ca8bc0b43b1084b8234746810c3ef6c446 /plugins/Alarms
parent942c498d6e8901f751b088c0adfcb8f3fc67576c (diff)
major code cleaning of all font-related structures
Diffstat (limited to 'plugins/Alarms')
-rw-r--r--plugins/Alarms/src/alarm_win.cpp7
-rwxr-xr-xplugins/Alarms/src/frame.cpp4
2 files changed, 3 insertions, 8 deletions
diff --git a/plugins/Alarms/src/alarm_win.cpp b/plugins/Alarms/src/alarm_win.cpp
index 83cd180c2b..fc4813f962 100644
--- a/plugins/Alarms/src/alarm_win.cpp
+++ b/plugins/Alarms/src/alarm_win.cpp
@@ -347,29 +347,26 @@ int ReloadFonts(WPARAM, LPARAM)
int AlarmWinModulesLoaded(WPARAM, LPARAM)
{
- title_font_id.cbSize = sizeof(FontIDW);
wcsncpy_s(title_font_id.group, LPGENW("Alarms"), _TRUNCATE);
wcsncpy_s(title_font_id.name, LPGENW("Title"), _TRUNCATE);
strncpy_s(title_font_id.dbSettingsGroup, MODULENAME, _TRUNCATE);
- strncpy_s(title_font_id.prefix, "FontTitle", _TRUNCATE);
+ strncpy_s(title_font_id.setting, "FontTitle", _TRUNCATE);
wcsncpy_s(title_font_id.backgroundGroup, LPGENW("Alarms"), _TRUNCATE);
wcsncpy_s(title_font_id.backgroundName, LPGENW("Background"), _TRUNCATE);
title_font_id.flags = 0;
title_font_id.order = 0;
g_plugin.addFont(&title_font_id);
- window_font_id.cbSize = sizeof(FontIDW);
wcsncpy_s(window_font_id.group, LPGENW("Alarms"), _TRUNCATE);
wcsncpy_s(window_font_id.name, LPGENW("Window"), _TRUNCATE);
strncpy_s(window_font_id.dbSettingsGroup, MODULENAME, _TRUNCATE);
- strncpy_s(window_font_id.prefix, "FontWindow", _TRUNCATE);
+ strncpy_s(window_font_id.setting, "FontWindow", _TRUNCATE);
wcsncpy_s(window_font_id.backgroundGroup, LPGENW("Alarms"), _TRUNCATE);
wcsncpy_s(window_font_id.backgroundName, LPGENW("Background"), _TRUNCATE);
window_font_id.flags = 0;
window_font_id.order = 1;
g_plugin.addFont(&window_font_id);
- bk_colour_id.cbSize = sizeof(ColourIDW);
strncpy_s(bk_colour_id.dbSettingsGroup, MODULENAME, _TRUNCATE);
wcsncpy_s(bk_colour_id.group, LPGENW("Alarms"), _TRUNCATE);
wcsncpy_s(bk_colour_id.name, LPGENW("Background"), _TRUNCATE);
diff --git a/plugins/Alarms/src/frame.cpp b/plugins/Alarms/src/frame.cpp
index 744892450d..921ca4f290 100755
--- a/plugins/Alarms/src/frame.cpp
+++ b/plugins/Alarms/src/frame.cpp
@@ -555,15 +555,13 @@ int CreateFrame()
SendMessage(hwnd_plugin, WMU_INITIALIZE, 0, 0);
- font_id.cbSize = sizeof(font_id);
strncpy_s(font_id.group, LPGEN("Frames"), _TRUNCATE);
strncpy_s(font_id.name, LPGEN("Alarm reminders"), _TRUNCATE);
strncpy_s(font_id.dbSettingsGroup, MODULENAME, _TRUNCATE);
- strncpy_s(font_id.prefix, "Font", _TRUNCATE);
+ strncpy_s(font_id.setting, "Font", _TRUNCATE);
font_id.order = 0;
g_plugin.addFont(&font_id);
- framebk_colour_id.cbSize = sizeof(ColourID);
strncpy_s(framebk_colour_id.dbSettingsGroup, MODULENAME, _TRUNCATE);
strncpy_s(framebk_colour_id.group, LPGEN("Frames"), _TRUNCATE);
strncpy_s(framebk_colour_id.name, LPGEN("Alarm reminders"), _TRUNCATE);