summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/frame.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-10-03 16:48:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-10-03 16:48:12 +0000
commit0976190894d653d5062f8ef6befabf46218f2d24 (patch)
tree4a26f4baa9a535256d7220a0c04a698390cab4e5 /plugins/MyDetails/src/frame.cpp
parent3c4ccf82586be6b22380df2bc35ae4770f91651f (diff)
- 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
Diffstat (limited to 'plugins/MyDetails/src/frame.cpp')
-rw-r--r--plugins/MyDetails/src/frame.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp
index 2274d8f64f..03afeafc70 100644
--- a/plugins/MyDetails/src/frame.cpp
+++ b/plugins/MyDetails/src/frame.cpp
@@ -198,7 +198,7 @@ int ReloadFont(WPARAM, LPARAM)
DeleteObject(hFont[i]);
LOGFONT log_font;
- font_colour[i] = CallService(MS_FONT_GETW, (WPARAM)&font_id[i], (LPARAM)&log_font);
+ font_colour[i] = Font_GetW(font_id[i], &log_font);
hFont[i] = CreateFontIndirect(&log_font);
}
@@ -208,8 +208,8 @@ int ReloadFont(WPARAM, LPARAM)
int ReloadColour(WPARAM, LPARAM)
{
- opts.bkg_color = (COLORREF)CallService(MS_COLOUR_GET, (WPARAM)&bg_colour, 0);
- opts.draw_avatar_border_color = (COLORREF)CallService(MS_COLOUR_GET, (WPARAM)&av_colour, 0);
+ opts.bkg_color = Colour_Get(bg_colour.group, bg_colour.name);
+ opts.draw_avatar_border_color = Colour_Get(av_colour.group, av_colour.name);
RefreshFrame();
return 0;
@@ -225,8 +225,8 @@ int CreateFrame()
{
HDC hdc = GetDC(NULL);
- ColourRegister(&bg_colour);
- ColourRegister(&av_colour);
+ Colour_Register(&bg_colour);
+ Colour_Register(&av_colour);
ReloadColour(0, 0);
HookEvent(ME_COLOUR_RELOAD, ReloadColour);
@@ -249,7 +249,7 @@ int CreateFrame()
mir_wstrncpy(font_id[i].deffontsettings.szFace, L"Tahoma", _countof(font_id[i].deffontsettings.szFace));
font_id[i].order = i;
font_id[i].flags = FIDF_DEFAULTVALID;
- FontRegisterW(&font_id[i]);
+ Font_RegisterW(&font_id[i]);
}
ReleaseDC(NULL, hdc);