mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
[MSPAINT] Fix two handle leaks
CORE-18867
This commit is contained in:
parent
5675604d28
commit
ad61c574f4
1 changed files with 2 additions and 4 deletions
|
@ -69,8 +69,7 @@ VOID CToolSettingsWindow::drawTrans(HDC hdc, LPCRECT prc)
|
||||||
RECT rc[2];
|
RECT rc[2];
|
||||||
getTransRects(rc, prc);
|
getTransRects(rc, prc);
|
||||||
|
|
||||||
HBRUSH hbrHigh = ::GetSysColorBrush(COLOR_HIGHLIGHT);
|
::FillRect(hdc, &rc[toolsModel.IsBackgroundTransparent()], (HBRUSH)(COLOR_HIGHLIGHT + 1));
|
||||||
::FillRect(hdc, &rc[toolsModel.IsBackgroundTransparent()], hbrHigh);
|
|
||||||
::DrawIconEx(hdc, rc[0].left, rc[0].top, m_hNontranspIcon,
|
::DrawIconEx(hdc, rc[0].left, rc[0].top, m_hNontranspIcon,
|
||||||
CX_TRANS_ICON, CY_TRANS_ICON, 0, NULL, DI_NORMAL);
|
CX_TRANS_ICON, CY_TRANS_ICON, 0, NULL, DI_NORMAL);
|
||||||
::DrawIconEx(hdc, rc[1].left, rc[1].top, m_hTranspIcon,
|
::DrawIconEx(hdc, rc[1].left, rc[1].top, m_hTranspIcon,
|
||||||
|
@ -119,8 +118,7 @@ VOID CToolSettingsWindow::drawBrush(HDC hdc, LPCRECT prc)
|
||||||
RECT rects[12];
|
RECT rects[12];
|
||||||
getBrushRects(rects, prc);
|
getBrushRects(rects, prc);
|
||||||
|
|
||||||
HBRUSH hbrHigh = ::GetSysColorBrush(COLOR_HIGHLIGHT);
|
::FillRect(hdc, &rects[toolsModel.GetBrushStyle()], (HBRUSH)(COLOR_HIGHLIGHT + 1));
|
||||||
::FillRect(hdc, &rects[toolsModel.GetBrushStyle()], hbrHigh);
|
|
||||||
|
|
||||||
for (INT i = 0; i < 12; i++)
|
for (INT i = 0; i < 12; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue