summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat/window.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-25 21:15:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-25 21:15:48 +0000
commitb7dc2813cd35d4a8a613b3fb6ef1a1408d86550a (patch)
tree6a9b47f6679dc21d54f3e0335fc14183fbf98829 /plugins/TabSRMM/src/chat/window.cpp
parenta31ac817430f710b776947925f772334eef5b6f1 (diff)
fix for choosing nick's color for devoiced contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@7894 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/window.cpp')
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp
index 4415029805..2661131037 100644
--- a/plugins/TabSRMM/src/chat/window.cpp
+++ b/plugins/TabSRMM/src/chat/window.cpp
@@ -2269,7 +2269,7 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
HFONT hOldFont = (HFONT) SelectObject(dis->hDC, hFont);
SetBkMode(dis->hDC, TRANSPARENT);
- int nickIndex = -1;
+ int nickIndex = 0;
for (int i = 0; i < STATUSICONCOUNT; i++) {
if (hIcon == pci->hIcons[ICON_STATUS0 + i]) {
nickIndex = i;
@@ -2283,7 +2283,7 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
}
else {
FillRect(dis->hDC, &dis->rcItem, pci->hListBkgBrush);
- if (g_Settings.bColorizeNicks && nickIndex != -1)
+ if (g_Settings.bColorizeNicks && nickIndex != 0)
SetTextColor(dis->hDC, g_Settings.nickColors[si->iStatusCount - nickIndex - 1]);
else
SetTextColor(dis->hDC, g_Settings.UserListColors[ui->iStatusEx]);