diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-29 11:28:35 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-29 11:28:35 +0300 |
commit | a00c17f7006f7a001757cf952ae4ed87b5a328dd (patch) | |
tree | 33d508f024d71c1448fc4a92dfb70b9921412fa1 /src/core | |
parent | f6aef20f214163655e9bd3dba3e6bd0d22edd1c8 (diff) |
code cleaning
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdclist/src/clcpaint.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/stdclist/src/clcpaint.cpp b/src/core/stdclist/src/clcpaint.cpp index ed0e505732..8282eb2dd5 100644 --- a/src/core/stdclist/src/clcpaint.cpp +++ b/src/core/stdclist/src/clcpaint.cpp @@ -256,11 +256,8 @@ void PaintClc(HWND hwnd, struct ClcData *dat, HDC hdc, RECT * rcPaint) ChangeToFont(hdcMem, dat, FONTID_DIVIDERS, &fontHeight);
else if (cc->type == CLCIT_CONTACT && cc->flags & CONTACTF_NOTONLIST)
ChangeToFont(hdcMem, dat, FONTID_NOTONLIST, &fontHeight);
- else if (cc->type == CLCIT_CONTACT && ((cc->flags & CONTACTF_INVISTO && Clist_GetRealStatus(cc, status) != ID_STATUS_INVISIBLE) || (cc->flags & CONTACTF_VISTO && Clist_GetRealStatus(cc, status) == ID_STATUS_INVISIBLE))) {
- // the contact is in the always visible list and the proto is invisible
- // the contact is in the always invisible and the proto is in any other mode
+ else if (cc->type == CLCIT_CONTACT && Clist_AltVisible(cc))
ChangeToFont(hdcMem, dat, cc->flags & CONTACTF_ONLINE ? FONTID_INVIS : FONTID_OFFINVIS, &fontHeight);
- }
else if (cc->type == CLCIT_CONTACT && !(cc->flags & CONTACTF_ONLINE))
ChangeToFont(hdcMem, dat, FONTID_OFFLINE, &fontHeight);
else
|