From 5decb665b2020761bcd4deee3af25bd75597b4af Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 1 Mar 2015 20:58:39 +0000 Subject: Toptoolbar: -cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12295 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/src/toolbarwnd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/TopToolBar/src') 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) { -- cgit v1.2.3