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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user