summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_log.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-10-16 22:47:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-10-16 22:47:10 +0300
commit53ff16b147c30de05cd21e3f97b0ae0106dd9566 (patch)
tree9afbb24421d8282dee04878ef0476547dc4d4f1c /plugins/TabSRMM/src/chat_log.cpp
parent472296cacaa7f230f6d99c7d1b6e44003de749af (diff)
the whole idea of customizable colors in chat considered totally useless
Diffstat (limited to 'plugins/TabSRMM/src/chat_log.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_log.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/chat_log.cpp b/plugins/TabSRMM/src/chat_log.cpp
index cda3695494..182c8f2618 100644
--- a/plugins/TabSRMM/src/chat_log.cpp
+++ b/plugins/TabSRMM/src/chat_log.cpp
@@ -631,7 +631,7 @@ static void AddEventToBuffer(CMStringA &str, LOGSTREAMDATA *streamData)
}
}
-char* Log_CreateRtfHeader(MODULEINFO *mi)
+char* Log_CreateRtfHeader(void)
{
// get the number of pixels per logical inch
if (pci->logPixelSY == 0) {
@@ -654,9 +654,6 @@ char* Log_CreateRtfHeader(MODULEINFO *mi)
for (int i = 0; i < OPTIONS_FONTCOUNT; i++)
str.AppendFormat("\\red%u\\green%u\\blue%u;", GetRValue(pci->aFonts[i].color), GetGValue(pci->aFonts[i].color), GetBValue(pci->aFonts[i].color));
- for (int i = 0; i < mi->nColorCount; i++)
- str.AppendFormat("\\red%u\\green%u\\blue%u;", GetRValue(mi->crColors[i]), GetGValue(mi->crColors[i]), GetBValue(mi->crColors[i]));
-
for (int i = 0; i < STATUSICONCOUNT; i++)
str.AppendFormat("\\red%u\\green%u\\blue%u;", GetRValue(g_Settings.nickColors[i]), GetGValue(g_Settings.nickColors[i]), GetBValue(g_Settings.nickColors[i]));
@@ -702,11 +699,11 @@ char* Log_CreateRTF(LOGSTREAMDATA *streamData)
// ### RTF HEADER
- if (0 == mi->pszHeader)
- mi->pszHeader = Log_CreateRtfHeader(mi);
+ if (mi->pszHeader == nullptr)
+ mi->pszHeader = Log_CreateRtfHeader();
char *header = mi->pszHeader;
- streamData->crCount = mi->nColorCount;
+ streamData->crCount = 0;
CMStringA str;
if (header)