diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-19 20:53:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-19 20:53:34 +0000 |
commit | 1fc33e01e8d1fe9ddcceb60697fa12a8e5bc13de (patch) | |
tree | be71e0ff860dd68fe231ef33ee861912135e6f42 /src/core/stdmsg/src/statusicon.cpp | |
parent | 712c8f58e1b727548c6cb923e09681ffd3f4fc75 (diff) |
- fix for drawing protocol icon in StdMsg
git-svn-id: http://svn.miranda-ng.org/main/trunk@1503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdmsg/src/statusicon.cpp')
-rw-r--r-- | src/core/stdmsg/src/statusicon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdmsg/src/statusicon.cpp b/src/core/stdmsg/src/statusicon.cpp index cd7ac3872e..0cb5a2b96e 100644 --- a/src/core/stdmsg/src/statusicon.cpp +++ b/src/core/stdmsg/src/statusicon.cpp @@ -145,7 +145,7 @@ void DrawStatusIcons(HANDLE hContact, HDC hDC, RECT r, int gap) { int x = r.left;
while(current && x < r.right) {
sprintf(buff, "SRMMStatusIconFlags%d", current->sid.dwId);
- flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags);
+ flags = db_get_b(hContact, current->sid.szModule, buff, current->sid.flags);
if (!(flags & MBF_HIDDEN)) {
if ((flags & MBF_DISABLED) && current->sid.hIconDisabled) hIcon = current->sid.hIconDisabled;
else hIcon = current->sid.hIcon;
@@ -168,7 +168,7 @@ void CheckIconClick(HANDLE hContact, HWND hwndFrom, POINT pt, RECT r, int gap, i while(current && iconNum >= 0) {
sprintf(buff, "SRMMStatusIconFlags%d", current->sid.dwId);
- flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags);
+ flags = db_get_b(hContact, current->sid.szModule, buff, current->sid.flags);
if (!(flags & MBF_HIDDEN)) iconNum--;
if(iconNum >= 0)
current = current->next;
@@ -211,7 +211,7 @@ int GetStatusIconsCount(HANDLE hContact) { struct StatusIconListNode *current = status_icon_list;
while(current) {
sprintf(buff, "SRMMStatusIconFlags%d", (int)current->sid.dwId);
- flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags);
+ flags = db_get_b(hContact, current->sid.szModule, buff, current->sid.flags);
if (!(flags & MBF_HIDDEN)) {
count ++;
}
|