summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-28 10:25:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-28 10:25:53 +0000
commit01433b81e943d57b1ec2ebb5758bd2a85d836753 (patch)
treeb91d37e863c641413ae812280db6c0536c507fe1 /src/mir_app
parented66ac7da13f746d05ed832cf1d6d84cecb18b22 (diff)
we don't redraw invisible contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@16784 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/clcmsgs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/clcmsgs.cpp b/src/mir_app/src/clcmsgs.cpp
index 04cadc8fb1..762bbc8965 100644
--- a/src/mir_app/src/clcmsgs.cpp
+++ b/src/mir_app/src/clcmsgs.cpp
@@ -339,11 +339,13 @@ LRESULT fnProcessExternalMessages(HWND hwnd, struct ClcData *dat, UINT msg, WPAR
case CLM_SETEXTRAIMAGE:
if (LOWORD(lParam) < dat->extraColumnsCount) {
- if (!cli.pfnFindItem(hwnd, dat, wParam, &contact, NULL, NULL))
+ int bVisible;
+ if (!cli.pfnFindItem(hwnd, dat, wParam, &contact, NULL, &bVisible))
return 0;
contact->iExtraImage[LOWORD(lParam)] = HIWORD(lParam);
- cli.pfnInvalidateRect(hwnd, NULL, FALSE);
+ if (bVisible)
+ cli.pfnInvalidateRect(hwnd, NULL, FALSE);
}
break;