Improved wxDCPen/BrushChangers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-05-23 14:11:55 +00:00
parent fbb67d0e52
commit 0164f8ebfd
2 changed files with 10 additions and 22 deletions

View File

@@ -232,12 +232,8 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win),
int flags)
{
// store settings
wxDCPenChanger penChanger(dc);
wxDCBrushChanger brushChanger(dc);
// white background
penChanger.Set(*wxGREY_PEN);
brushChanger.Set(*wxWHITE_BRUSH);
wxDCPenChanger penChanger(dc, *wxGREY_PEN);
wxDCBrushChanger brushChanger(dc, *wxWHITE_BRUSH);
dc.DrawRectangle(rect);