diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-08-10 11:19:17 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-08-10 11:19:17 +0000 |
commit | 5867abd3dae59bcb8ea93d77ee3ad9e203ecff79 (patch) | |
tree | 6ee7aadd4befb753e407abd6dbd03c55a5588ef5 /src/core/stdmsg/src/statusicon.cpp | |
parent | 9319159d78d3f42cc3affc624ee088b47eec47ff (diff) |
Status changes are now shown in font for "Other events" (fixes #553)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdmsg/src/statusicon.cpp')
-rw-r--r-- | src/core/stdmsg/src/statusicon.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/stdmsg/src/statusicon.cpp b/src/core/stdmsg/src/statusicon.cpp index 24b09d1a6d..4d2b0c8bf7 100644 --- a/src/core/stdmsg/src/statusicon.cpp +++ b/src/core/stdmsg/src/statusicon.cpp @@ -38,14 +38,12 @@ static int OnSrmmIconChanged(WPARAM hContact, LPARAM) void DrawStatusIcons(MCONTACT hContact, HDC hDC, RECT r, int gap)
{
- HICON hIcon;
int x = r.left;
int nIcon = 0;
- StatusIconData *sid;
- while ((sid = Srmm_GetNthIcon(hContact, nIcon++)) != 0 && x < r.right) {
- if ((sid->flags & MBF_DISABLED) && sid->hIconDisabled) hIcon = sid->hIconDisabled;
- else hIcon = sid->hIcon;
+ StatusIconData *sid = Srmm_GetNthIcon(hContact, nIcon++);
+ while (sid != 0 && x < r.right) {
+ HICON hIcon = ((sid->flags & MBF_DISABLED) && sid->hIconDisabled) ? sid->hIconDisabled : sid->hIcon;
SetBkMode(hDC, TRANSPARENT);
DrawIconEx(hDC, x, (r.top + r.bottom - GetSystemMetrics(SM_CYSMICON)) >> 1, hIcon, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0, NULL, DI_NORMAL);
|