summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-19 16:12:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-19 16:12:45 +0000
commit146f32de4c288f1900b5a8f168290dc2bbd40530 (patch)
tree9733f02444e18268d2dbfa11102a4b04bf28bacf
parent03faabc4ee5eb6a9bfa5882f155cf3225128ca42 (diff)
fix for the log icons' background
git-svn-id: http://svn.miranda-ng.org/main/trunk@7762 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/TabSRMM/src/chat/main.cpp4
-rw-r--r--src/modules/chat/log.cpp2
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);