summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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) {