diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-22 18:30:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-22 18:30:42 +0300 |
commit | 8557d288376ccc87bd54f2a76c99f77115949f02 (patch) | |
tree | fdb3f8cac9215adc4493d26abb935bd5c1f54b2e /plugins/TrafficCounter | |
parent | feac2b1a6a79c9d0bb58b0825ec2a776b888f9ce (diff) |
m_fontservice.h => CMPlugin
Diffstat (limited to 'plugins/TrafficCounter')
-rw-r--r-- | plugins/TrafficCounter/src/TrafficCounter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TrafficCounter/src/TrafficCounter.cpp b/plugins/TrafficCounter/src/TrafficCounter.cpp index 0f687b11d0..2de4bda8dc 100644 --- a/plugins/TrafficCounter/src/TrafficCounter.cpp +++ b/plugins/TrafficCounter/src/TrafficCounter.cpp @@ -1145,7 +1145,7 @@ static int TrafficCounterModulesLoaded(WPARAM, LPARAM) TrafficFontID.deffontsettings.style = 0;
mir_wstrcpy(TrafficFontID.deffontsettings.szFace, L"Arial");
TrafficFontID.order = 0;
- Font_RegisterW(&TrafficFontID);
+ g_plugin.addFont(&TrafficFontID);
// Регистрируем цвет фона
TrafficBackgroundColorID.cbSize = sizeof(ColourIDW);
@@ -1154,7 +1154,7 @@ static int TrafficCounterModulesLoaded(WPARAM, LPARAM) mir_strcpy(TrafficBackgroundColorID.dbSettingsGroup, MODULENAME);
mir_strcpy(TrafficBackgroundColorID.setting, "FontBkColor");
TrafficBackgroundColorID.defcolour = GetSysColor(COLOR_BTNFACE);
- Colour_RegisterW(&TrafficBackgroundColorID);
+ g_plugin.addColor(&TrafficBackgroundColorID);
HookEvent(ME_FONT_RELOAD, UpdateFonts);
|