X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90b903c26306d88d3920589125ea1a03664e1b22..8b713759b615fc1530d1f476f37d6d213e7934a5:/src/generic/renderg.cpp diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index 478d156dcf..817dd01986 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -24,18 +24,19 @@ #pragma hdrstop #endif +#include "wx/renderer.h" + #ifndef WX_PRECOMP #include "wx/string.h" + #include "wx/dc.h" + #include "wx/settings.h" #endif //WX_PRECOMP #include "wx/gdicmn.h" -#include "wx/dc.h" -#include "wx/settings.h" #include "wx/splitter.h" #include "wx/dcmirror.h" #include "wx/module.h" -#include "wx/renderer.h" // ---------------------------------------------------------------------------- // wxRendererGeneric: our wxRendererNative implementation @@ -230,9 +231,10 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win), const wxRect& rect, int flags) { - // white background - dc.SetPen(*wxGREY_PEN); - dc.SetBrush(*wxWHITE_BRUSH); + // store settings + wxDCPenChanger penChanger(dc, *wxGREY_PEN); + wxDCBrushChanger brushChanger(dc, *wxWHITE_BRUSH); + dc.DrawRectangle(rect); // black lines