From a411a7391bb879db8da398f067245a13c7fa7aee Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 25 Jul 2018 23:10:36 +0300 Subject: major code cleaning of all font-related structures --- plugins/TabSRMM/src/chat_options.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/chat_options.cpp b/plugins/TabSRMM/src/chat_options.cpp index 373450eba7..6b218f16f3 100644 --- a/plugins/TabSRMM/src/chat_options.cpp +++ b/plugins/TabSRMM/src/chat_options.cpp @@ -290,18 +290,15 @@ static wchar_t *chatcolorsnames[] = void RegisterFontServiceFonts() { LOGFONT lf; - FontIDW fid = { 0 }; - ColourIDW cid = { 0 }; - - fid.cbSize = sizeof(FontIDW); - cid.cbSize = sizeof(ColourIDW); + FontIDW fid = {}; + ColourIDW cid = {}; strncpy(fid.dbSettingsGroup, FONTMODULE, _countof(fid.dbSettingsGroup)); for (int i = 0; i < _countof(IM_fontOptionsList); i++) { fid.flags = FIDF_DEFAULTVALID | FIDF_ALLOWEFFECTS; LoadMsgDlgFont(FONTSECTION_IM, i, &lf, &fontOptionsList[i].colour, FONTMODULE); - mir_snprintf(fid.prefix, "Font%d", i); + mir_snprintf(fid.setting, "Font%d", i); fid.order = i; wcsncpy(fid.name, fontOptionsList[i].szDescr, _countof(fid.name)); fid.deffontsettings.colour = fontOptionsList[i].colour; @@ -363,7 +360,7 @@ void RegisterFontServiceFonts() wcsncpy(fid.backgroundName, LPGENW("Fields background"), _countof(fid.backgroundName)); for (int i = 0; i < IPFONTCOUNT; i++) { LoadMsgDlgFont(FONTSECTION_IP, i, &lf, &fontOptionsList[i].colour, FONTMODULE); - mir_snprintf(fid.prefix, "Font%d", i + 100); + mir_snprintf(fid.setting, "Font%d", i + 100); fid.order = i + 100; wcsncpy(fid.name, fontOptionsList[i].szDescr, _countof(fid.name)); fid.deffontsettings.colour = fontOptionsList[i].colour; -- cgit v1.2.3