Basic retained-mode-style canvas for timeline; allow selection.
[dcpomatic.git] / src / wx / audio_mapping_view.cc
index a5dacdfc258bda49aeeee8371ba240b1cceb96eb..093d25b7c8cae0d99346d2c1f9ffbb4511ea3848 100644 (file)
@@ -59,6 +59,13 @@ public:
 
        void Draw (wxGrid& grid, wxGridCellAttr &, wxDC& dc, const wxRect& rect, int row, int col, bool)
        {
+#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, wxSOLID));
+#endif         
+               dc.DrawRectangle (rect);
+               
                wxRendererNative::Get().DrawCheckBox (
                        &grid,
                        dc, rect,