mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Don't save/change/restore the DC pen in IntDrawScrollInterior, where it's not used at all.
svn path=/trunk/; revision=41651
This commit is contained in:
parent
39374c3ad4
commit
8af77479df
1 changed files with 0 additions and 4 deletions
|
@ -99,7 +99,6 @@ IntDrawScrollInterior(HWND hWnd, HDC hDC, INT nBar, BOOL Vertical,
|
|||
INT ThumbSize = ScrollBarInfo->xyThumbBottom - ScrollBarInfo->xyThumbTop;
|
||||
INT ThumbTop = ScrollBarInfo->xyThumbTop;
|
||||
RECT Rect;
|
||||
HPEN hSavePen;
|
||||
HBRUSH hSaveBrush, hBrush;
|
||||
BOOL TopSelected = FALSE, BottomSelected = FALSE;
|
||||
|
||||
|
@ -124,7 +123,6 @@ IntDrawScrollInterior(HWND hWnd, HDC hDC, INT nBar, BOOL Vertical,
|
|||
hBrush = DefWndControlColor(hDC, CTLCOLOR_SCROLLBAR);
|
||||
}
|
||||
|
||||
hSavePen = SelectObject(hDC, GetSysColorPen(COLOR_WINDOWFRAME));
|
||||
hSaveBrush = SelectObject(hDC, hBrush);
|
||||
|
||||
/* Calculate the scroll rectangle */
|
||||
|
@ -150,7 +148,6 @@ IntDrawScrollInterior(HWND hWnd, HDC hDC, INT nBar, BOOL Vertical,
|
|||
Rect.bottom - Rect.top, PATCOPY);
|
||||
|
||||
/* Cleanup and return */
|
||||
SelectObject(hDC, hSavePen);
|
||||
SelectObject(hDC, hSaveBrush);
|
||||
return;
|
||||
}
|
||||
|
@ -207,7 +204,6 @@ IntDrawScrollInterior(HWND hWnd, HDC hDC, INT nBar, BOOL Vertical,
|
|||
DrawEdge(hDC, &Rect, EDGE_RAISED, BF_RECT | BF_MIDDLE);
|
||||
|
||||
/* Cleanup */
|
||||
SelectObject(hDC, hSavePen);
|
||||
SelectObject(hDC, hSaveBrush);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue