diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-06 23:28:19 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-06 23:28:19 +0000 |
commit | 1dd73910cbbf9062b62b4713ff88427011fcac85 (patch) | |
tree | e747e8055920ceb6feef9798fa3c71120f0c1350 /plugins/Clist_nicer/src/clui.cpp | |
parent | 052236c2ce0e28176d18cfdf08ac258cbf7600a1 (diff) |
Clist_nicer:
- Minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clui.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_nicer/src/clui.cpp b/plugins/Clist_nicer/src/clui.cpp index 4beb623b86..ea83885538 100644 --- a/plugins/Clist_nicer/src/clui.cpp +++ b/plugins/Clist_nicer/src/clui.cpp @@ -496,7 +496,7 @@ void BlitWallpaper(HDC hdc, RECT *rc, struct ClcData *dat) HRGN my_rgn = CreateRectRgn(rc->left, rc->top, rc->right, rc->bottom); SelectClipRgn(hdc, my_rgn); maxx = dat->backgroundBmpUse & CLBF_TILEH ? rc->right : rc->left + 1; - maxy = dat->backgroundBmpUse & CLBF_TILEV ? maxy = rc->bottom : y + 1; + maxy = dat->backgroundBmpUse & CLBF_TILEV ? rc->bottom : y + 1; switch (dat->backgroundBmpUse & CLBM_TYPE) { case CLB_STRETCH: if (dat->backgroundBmpUse & CLBF_PROPORTIONAL) { @@ -1052,7 +1052,7 @@ skipbg: case WM_WINDOWPOSCHANGING: if (pcli->hwndContactList != NULL) { WINDOWPOS *wp = (WINDOWPOS *)lParam; - if (wp && wp->flags & SWP_NOSIZE) + if (!wp || (wp->flags & SWP_NOSIZE)) return FALSE; RedrawWindow(hwnd, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW); |