summaryrefslogtreecommitdiff
path: root/src/core/stdmsg/src/statusicon.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-08-12 19:39:26 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-08-12 19:39:26 +0000
commit442fbaf1d2df12c1f359b0ab64ddcecaff250628 (patch)
treeb71585f58cbe0ad37e7b87545d4158790784af4c /src/core/stdmsg/src/statusicon.cpp
parent79f5521815e208cb694bbc814ee88429e20328b6 (diff)
- Fixed status changes not being instantly displayed (fixes #553)
- Fixed icon for status changes - Changed background setting to be changed with color settings - Fixed status bar icons git-svn-id: http://svn.miranda-ng.org/main/trunk@10171 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdmsg/src/statusicon.cpp')
-rw-r--r--src/core/stdmsg/src/statusicon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/statusicon.cpp b/src/core/stdmsg/src/statusicon.cpp
index 4d2b0c8bf7..20932d34ea 100644
--- a/src/core/stdmsg/src/statusicon.cpp
+++ b/src/core/stdmsg/src/statusicon.cpp
@@ -41,8 +41,8 @@ void DrawStatusIcons(MCONTACT hContact, HDC hDC, RECT r, int gap)
int x = r.left;
int nIcon = 0;
- StatusIconData *sid = Srmm_GetNthIcon(hContact, nIcon++);
- while (sid != 0 && x < r.right) {
+ StatusIconData *sid;
+ while ((sid = Srmm_GetNthIcon(hContact, nIcon++)) != 0 && x < r.right) {
HICON hIcon = ((sid->flags & MBF_DISABLED) && sid->hIconDisabled) ? sid->hIconDisabled : sid->hIcon;
SetBkMode(hDC, TRANSPARENT);