diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-25 23:10:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-25 23:10:36 +0300 |
commit | a411a7391bb879db8da398f067245a13c7fa7aee (patch) | |
tree | 4b2c76ca8bc0b43b1084b8234746810c3ef6c446 /plugins/Console | |
parent | 942c498d6e8901f751b088c0adfcb8f3fc67576c (diff) |
major code cleaning of all font-related structures
Diffstat (limited to 'plugins/Console')
-rw-r--r-- | plugins/Console/src/Console.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp index c9b09e9a14..5b2a737243 100644 --- a/plugins/Console/src/Console.cpp +++ b/plugins/Console/src/Console.cpp @@ -1100,12 +1100,11 @@ static int OnSystemModulesLoaded(WPARAM, LPARAM) {
CreateServiceFunction(MS_CONSOLE_SHOW_HIDE, ShowHideConsole);
- FontIDW fid = { 0 };
- fid.cbSize = sizeof(fid);
+ FontIDW fid = {};
mir_wstrncpy(fid.group, LPGENW("Console"), _countof(fid.group));
mir_wstrncpy(fid.name, LPGENW("Text"), _countof(fid.name));
mir_strncpy(fid.dbSettingsGroup, "Console", _countof(fid.dbSettingsGroup));
- mir_strncpy(fid.prefix, "ConsoleFont", _countof(fid.prefix));
+ mir_strncpy(fid.setting, "ConsoleFont", _countof(fid.setting));
mir_wstrncpy(fid.backgroundGroup, LPGENW("Console"), _countof(fid.backgroundGroup));
mir_wstrncpy(fid.backgroundName, LPGENW("Background"), _countof(fid.backgroundName));
fid.flags = FIDF_DEFAULTVALID;
@@ -1118,8 +1117,7 @@ static int OnSystemModulesLoaded(WPARAM, LPARAM) HookEvent(ME_FONT_RELOAD, OnFontChange);
- ColourIDW cid = { 0 };
- cid.cbSize = sizeof(cid);
+ ColourIDW cid = {};
mir_wstrncpy(cid.group, LPGENW("Console"), _countof(cid.group));
mir_wstrncpy(cid.name, LPGENW("Background"), _countof(cid.name));
mir_strncpy(cid.dbSettingsGroup, "Console", _countof(cid.dbSettingsGroup));
|