From 146f32de4c288f1900b5a8f168290dc2bbd40530 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 19 Jan 2014 16:12:45 +0000 Subject: fix for the log icons' background git-svn-id: http://svn.miranda-ng.org/main/trunk@7762 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/main.cpp | 4 +++- src/modules/chat/log.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp index b7ba1099d1..08b0a877aa 100644 --- a/plugins/TabSRMM/src/chat/main.cpp +++ b/plugins/TabSRMM/src/chat/main.cpp @@ -191,7 +191,9 @@ static void OnLoadSettings() } g_Settings.nickColors[5] = M.GetDword("Chat", "NickColor5", GetSysColor(COLOR_HIGHLIGHT)); g_Settings.nickColors[6] = M.GetDword("Chat", "NickColor6", GetSysColor(COLOR_HIGHLIGHTTEXT)); - + + g_Settings.crLogBackground = M.GetDword(FONTMODULE, SRMSGSET_BKGCOLOUR_MUC, SRMSGDEFSET_BKGCOLOUR); + if (g_Settings.SelectionBGBrush) DeleteObject(g_Settings.SelectionBGBrush); g_Settings.SelectionBGBrush = CreateSolidBrush(g_Settings.nickColors[5]); diff --git a/src/modules/chat/log.cpp b/src/modules/chat/log.cpp index 115b9fc907..26a88b35f3 100644 --- a/src/modules/chat/log.cpp +++ b/src/modules/chat/log.cpp @@ -477,7 +477,7 @@ char* Log_CreateRtfHeader(MODULEINFO *mi) void LoadMsgLogBitmaps(void) { - HBRUSH hBkgBrush = CreateSolidBrush(db_get_dw(NULL, "Chat", "ColorLogBG", GetSysColor(COLOR_WINDOW))); + HBRUSH hBkgBrush = CreateSolidBrush(g_Settings->crLogBackground); BITMAPINFOHEADER bih = { 0 }; bih.biSize = sizeof(bih); -- cgit v1.2.3