summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_mwin.cpp
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/Weather/src/weather_mwin.cpp
parent942c498d6e8901f751b088c0adfcb8f3fc67576c (diff)
major code cleaning of all font-related structures
Diffstat (limited to 'plugins/Weather/src/weather_mwin.cpp')
-rw-r--r--plugins/Weather/src/weather_mwin.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/Weather/src/weather_mwin.cpp b/plugins/Weather/src/weather_mwin.cpp
index 7208b267df..9c5e098dfd 100644
--- a/plugins/Weather/src/weather_mwin.cpp
+++ b/plugins/Weather/src/weather_mwin.cpp
@@ -316,8 +316,7 @@ void InitMwin(void)
wndclass.lpszClassName = L"WeatherFrame";
RegisterClass(&wndclass);
- ColourIDW colourid = { 0 };
- colourid.cbSize = sizeof(ColourIDW);
+ ColourIDW colourid = {};
mir_strcpy(colourid.dbSettingsGroup, WEATHERPROTONAME);
mir_strcpy(colourid.setting, "ColorMwinFrame");
mir_wstrcpy(colourid.name, LPGENW("Frame Background"));
@@ -325,13 +324,12 @@ void InitMwin(void)
colourid.defcolour = GetSysColor(COLOR_3DFACE);
g_plugin.addColor(&colourid);
- FontIDW fontid = { 0 };
- fontid.cbSize = sizeof(FontIDW);
+ FontIDW fontid = {};
fontid.flags = FIDF_ALLOWREREGISTER | FIDF_DEFAULTVALID;
mir_strcpy(fontid.dbSettingsGroup, WEATHERPROTONAME);
mir_wstrcpy(fontid.group, _A2W(WEATHERPROTONAME));
mir_wstrcpy(fontid.name, LPGENW("Frame Font"));
- mir_strcpy(fontid.prefix, "fnt0");
+ mir_strcpy(fontid.setting, "fnt0");
HDC hdc = GetDC(nullptr);
fontid.deffontsettings.size = -13;
@@ -345,7 +343,7 @@ void InitMwin(void)
fontid.deffontsettings.style = DBFONTF_BOLD;
mir_wstrcpy(fontid.name, LPGENW("Frame Title Font"));
- mir_strcpy(fontid.prefix, "fnt1");
+ mir_strcpy(fontid.setting, "fnt1");
g_plugin.addFont(&fontid);
for (auto &hContact : Contacts(WEATHERPROTONAME))