Better attempt at clearing background of check boxes.
authorCarl Hetherington <cth@carlh.net>
Mon, 6 May 2013 15:08:15 +0000 (16:08 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 6 May 2013 15:08:15 +0000 (16:08 +0100)
src/wx/audio_mapping_view.cc

index 878db3af2a677d31fb19f5512c95781082b8d6bb..2625d09621ef4faa7d874ea1f0c64e81c998c763 100644 (file)
@@ -59,7 +59,12 @@ public:
 
        void Draw (wxGrid& grid, wxGridCellAttr &, wxDC& dc, const wxRect& rect, int row, int col, bool)
        {
-               dc.Clear ();
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+               dc.SetPen (*wxThePenList->FindOrCreatePen (wxColour (255, 255, 255), 0, wxPENSTYLE_SOLID));
+#else          
+               dc.SetPen (*wxThePenList->FindOrCreatePen (wxColour (255, 255, 255), 0, SOLID));
+#endif         
+               dc.DrawRectangle (rect);
                
                wxRendererNative::Get().DrawCheckBox (
                        &grid,