diff options
-rw-r--r-- | plugins/TabSRMM/src/chat/main.cpp | 4 | ||||
-rw-r--r-- | 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);
|