]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/renderg.cpp
Warning fixes for VC++ 5.0
[wxWidgets.git] / src / generic / renderg.cpp
index b1b8fc76c4b76fdc92b48bae7a4b0d856adac156..817dd01986f07abee00454b65e18b46ea1511f22 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/string.h"
     #include "wx/dc.h"
+    #include "wx/settings.h"
 #endif //WX_PRECOMP
 
 #include "wx/gdicmn.h"
 
-#include "wx/settings.h"
 #include "wx/splitter.h"
 #include "wx/dcmirror.h"
 #include "wx/module.h"
@@ -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);