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/Alarms/src/alarm_win.cpp | 6 +++--- plugins/Alarms/src/frame.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Alarms') diff --git a/plugins/Alarms/src/alarm_win.cpp b/plugins/Alarms/src/alarm_win.cpp index 940f9857a7..83cd180c2b 100644 --- a/plugins/Alarms/src/alarm_win.cpp +++ b/plugins/Alarms/src/alarm_win.cpp @@ -356,7 +356,7 @@ int AlarmWinModulesLoaded(WPARAM, LPARAM) wcsncpy_s(title_font_id.backgroundName, LPGENW("Background"), _TRUNCATE); title_font_id.flags = 0; title_font_id.order = 0; - Font_RegisterW(&title_font_id); + g_plugin.addFont(&title_font_id); window_font_id.cbSize = sizeof(FontIDW); wcsncpy_s(window_font_id.group, LPGENW("Alarms"), _TRUNCATE); @@ -367,7 +367,7 @@ int AlarmWinModulesLoaded(WPARAM, LPARAM) wcsncpy_s(window_font_id.backgroundName, LPGENW("Background"), _TRUNCATE); window_font_id.flags = 0; window_font_id.order = 1; - Font_RegisterW(&window_font_id); + g_plugin.addFont(&window_font_id); bk_colour_id.cbSize = sizeof(ColourIDW); strncpy_s(bk_colour_id.dbSettingsGroup, MODULENAME, _TRUNCATE); @@ -378,7 +378,7 @@ int AlarmWinModulesLoaded(WPARAM, LPARAM) bk_colour_id.flags = 0; bk_colour_id.order = 0; - Colour_RegisterW(&bk_colour_id); + g_plugin.addColor(&bk_colour_id); ReloadFonts(0, 0); HookEvent(ME_FONT_RELOAD, ReloadFonts); diff --git a/plugins/Alarms/src/frame.cpp b/plugins/Alarms/src/frame.cpp index f9c435a518..e756521f6d 100755 --- a/plugins/Alarms/src/frame.cpp +++ b/plugins/Alarms/src/frame.cpp @@ -561,7 +561,7 @@ int CreateFrame() strncpy_s(font_id.dbSettingsGroup, MODULENAME, _TRUNCATE); strncpy_s(font_id.prefix, "Font", _TRUNCATE); font_id.order = 0; - Font_Register(&font_id); + g_plugin.addFont(&font_id); framebk_colour_id.cbSize = sizeof(ColourID); strncpy_s(framebk_colour_id.dbSettingsGroup, MODULENAME, _TRUNCATE); @@ -571,7 +571,7 @@ int CreateFrame() framebk_colour_id.defcolour = GetSysColor(COLOR_3DFACE); framebk_colour_id.flags = 0; framebk_colour_id.order = 0; - Colour_Register(&framebk_colour_id); + g_plugin.addColor(&framebk_colour_id); LOGFONTA log_font; fontColour = Font_Get(font_id, &log_font); -- cgit v1.2.3