summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-11 08:59:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-11 08:59:52 +0000
commitdb3992b55d0616896da4f616dfd09fac6642b292 (patch)
tree8a6624e32dfa68b67e168e333c4f7df4701929ec /plugins/TopToolBar
parent48e3bbf926d0a676d0c5e338c31144ee4209e113 (diff)
- modern toolbar bug emulation
- useless field privateIcon removed; - another useless code removed git-svn-id: http://svn.miranda-ng.org/main/trunk@897 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r--plugins/TopToolBar/toolbar.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp
index 02338c69b7..156f378937 100644
--- a/plugins/TopToolBar/toolbar.cpp
+++ b/plugins/TopToolBar/toolbar.cpp
@@ -555,10 +555,8 @@ static void PaintToolbar(HWND hwnd)
HBITMAP hOldBmp = (HBITMAP)SelectObject(hdcMem, hBmpOsb);
SetBkMode(hdcMem, TRANSPARENT);
- HBRUSH hBrush, hoBrush;
-
- hBrush = CreateSolidBrush(bkColour);
- hoBrush = (HBRUSH)SelectObject(hdcMem, hBrush);
+ HBRUSH hBrush = CreateSolidBrush(bkColour);
+ HBRUSH hoBrush = (HBRUSH)SelectObject(hdcMem, hBrush);
FillRect(hdcMem, rcPaint, hBrush);
SelectObject(hdcMem, hoBrush);
DeleteObject(hBrush);