From b7dc2813cd35d4a8a613b3fb6ef1a1408d86550a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Jan 2014 21:15:48 +0000 Subject: 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 --- plugins/TabSRMM/src/chat/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM') 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]); -- cgit v1.2.3