From 8557d288376ccc87bd54f2a76c99f77115949f02 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 May 2018 18:30:42 +0300 Subject: m_fontservice.h => CMPlugin --- plugins/Weather/src/weather_mwin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Weather') diff --git a/plugins/Weather/src/weather_mwin.cpp b/plugins/Weather/src/weather_mwin.cpp index 5b0eeee3d7..84d652670b 100644 --- a/plugins/Weather/src/weather_mwin.cpp +++ b/plugins/Weather/src/weather_mwin.cpp @@ -323,7 +323,7 @@ void InitMwin(void) mir_wstrcpy(colourid.name, LPGENW("Frame Background")); mir_wstrcpy(colourid.group, _A2W(WEATHERPROTONAME)); colourid.defcolour = GetSysColor(COLOR_3DFACE); - Colour_RegisterW(&colourid); + g_plugin.addColor(&colourid); FontIDW fontid = { 0 }; fontid.cbSize = sizeof(FontIDW); @@ -341,12 +341,12 @@ void InitMwin(void) mir_wstrcpy(fontid.deffontsettings.szFace, L"Verdana"); mir_wstrcpy(fontid.backgroundGroup, _A2W(WEATHERPROTONAME)); mir_wstrcpy(fontid.backgroundName, LPGENW("Frame Background")); - Font_RegisterW(&fontid); + g_plugin.addFont(&fontid); fontid.deffontsettings.style = DBFONTF_BOLD; mir_wstrcpy(fontid.name, LPGENW("Frame Title Font")); mir_strcpy(fontid.prefix, "fnt1"); - Font_RegisterW(&fontid); + g_plugin.addFont(&fontid); for (auto &hContact : Contacts(WEATHERPROTONAME)) if (db_get_dw(hContact, WEATHERPROTONAME, "mwin", 0)) -- cgit v1.2.3