summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-03-01 20:58:39 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-03-01 20:58:39 +0000
commit5decb665b2020761bcd4deee3af25bd75597b4af (patch)
tree7253a0c11e12c33c0bb48d779bc957cb8ce1b3dd /plugins/TopToolBar
parentd6331b6e7bbef9facc7e6c8bdc42ed4e7b58668d (diff)
Toptoolbar:
-cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12295 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r--plugins/TopToolBar/src/toolbarwnd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TopToolBar/src/toolbarwnd.cpp b/plugins/TopToolBar/src/toolbarwnd.cpp
index b21b072c0f..ec2505917d 100644
--- a/plugins/TopToolBar/src/toolbarwnd.cpp
+++ b/plugins/TopToolBar/src/toolbarwnd.cpp
@@ -20,7 +20,6 @@ static void PaintToolbar(HWND hwnd)
RECT clRect;
GetClientRect(hwnd, &clRect);
- if (rcPaint == NULL) rcPaint = &clRect;
int yScroll = 0;
int y = -yScroll;
@@ -43,7 +42,7 @@ static void PaintToolbar(HWND hwnd)
SelectObject(hdcBmp, hBmpBackground);
int y = backgroundBmpUse & CLBF_SCROLL ? -yScroll : 0;
int maxx = backgroundBmpUse & CLBF_TILEH ? clRect.right : 1;
- int maxy = backgroundBmpUse & CLBF_TILEV ? maxy = rcPaint->bottom : y+1;
+ int maxy = backgroundBmpUse & CLBF_TILEV ? rcPaint->bottom : y+1;
int destw, desth;
switch(backgroundBmpUse & CLBM_TYPE) {