diff options
Diffstat (limited to 'src/modules/button/button.cpp')
-rw-r--r-- | src/modules/button/button.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp index 0df5c21806..483c85b0b4 100644 --- a/src/modules/button/button.cpp +++ b/src/modules/button/button.cpp @@ -129,10 +129,8 @@ static void PaintWorker(MButtonCtrl *ctl, HDC hdcPaint) SelectObject(dc, oldBrush);
ReleaseDC(hwndParent, dc);
}
- if (hbr) {
+ if (hbr)
FillRect(hdcMem, &rcClient, hbr);
- DeleteObject(hbr);
- }
if (ctl->stateId == PBS_HOT || ctl->focus) {
if (ctl->bIsPushed)
DrawEdge(hdcMem, &rcClient, EDGE_ETCHED, BF_RECT|BF_SOFT);
|