From 0976190894d653d5062f8ef6befabf46218f2d24 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Oct 2016 16:48:12 +0000 Subject: - inlined helpers for fonts, colors & effects creation replaced with functions; - services for getting fonts, colors & effects removed; - some memory corruptions removed git-svn-id: http://svn.miranda-ng.org/main/trunk@17347 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Ping/src/pingthread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Ping/src') diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp index b0df01d290..c0f48b16cc 100644 --- a/plugins/Ping/src/pingthread.cpp +++ b/plugins/Ping/src/pingthread.cpp @@ -781,11 +781,11 @@ int ReloadFont(WPARAM, LPARAM) if (hFont) DeleteObject(hFont); LOGFONT log_font; - CallService(MS_FONT_GETW, (WPARAM)&font_id, (LPARAM)&log_font); + Font_GetW(font_id, &log_font); hFont = CreateFontIndirect(&log_font); SendMessage(list_hwnd, WM_SETFONT, (WPARAM)hFont, TRUE); - bk_col = CallService(MS_COLOUR_GETW, (WPARAM)&bk_col_id, 0); + bk_col = Colour_GetW(bk_col_id); RefreshWindow(0, 0); return 0; @@ -931,7 +931,7 @@ void InitList() font_id.deffontsettings.colour = RGB(255, 255, 255); mir_wstrncpy(font_id.deffontsettings.szFace, L"Tahoma", _countof(font_id.deffontsettings.szFace)); - FontRegisterW(&font_id); + Font_RegisterW(&font_id); bk_col_id.cbSize = sizeof(ColourIDW); mir_wstrncpy(bk_col_id.group, L"Ping", _countof(bk_col_id.group)); @@ -939,7 +939,7 @@ void InitList() mir_strncpy(bk_col_id.dbSettingsGroup, "PING", _countof(bk_col_id.dbSettingsGroup)); mir_strncpy(bk_col_id.setting, "BgColor", _countof(bk_col_id.setting)); bk_col_id.defcolour = RGB(0, 0, 0); - ColourRegisterW(&bk_col_id); + Colour_RegisterW(&bk_col_id); HookEvent(ME_FONT_RELOAD, ReloadFont); -- cgit v1.2.3