Try to fix lack of redraw on resize on Windows; also corrupted background to checkbox...
authorCarl Hetherington <cth@carlh.net>
Mon, 6 May 2013 14:41:51 +0000 (15:41 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 6 May 2013 14:41:51 +0000 (15:41 +0100)
src/wx/audio_dialog.cc
src/wx/audio_mapping_view.cc
src/wx/timeline_dialog.cc

index 15d746839bc6b18ae241ebc62b45b82e21a885bf..d1d13ab783647f4c5ae41b0fa1e170aec47a18d9 100644 (file)
@@ -29,7 +29,7 @@ using boost::bind;
 using boost::optional;
 
 AudioDialog::AudioDialog (wxWindow* parent)
-       : wxDialog (parent, wxID_ANY, _("Audio"), wxDefaultPosition, wxSize (640, 512), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
+       : wxDialog (parent, wxID_ANY, _("Audio"), wxDefaultPosition, wxSize (640, 512), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxFULL_REPAINT_ON_RESIZE)
        , _plot (0)
 {
        wxBoxSizer* sizer = new wxBoxSizer (wxHORIZONTAL);
index a5dacdfc258bda49aeeee8371ba240b1cceb96eb..878db3af2a677d31fb19f5512c95781082b8d6bb 100644 (file)
@@ -59,6 +59,8 @@ public:
 
        void Draw (wxGrid& grid, wxGridCellAttr &, wxDC& dc, const wxRect& rect, int row, int col, bool)
        {
+               dc.Clear ();
+               
                wxRendererNative::Get().DrawCheckBox (
                        &grid,
                        dc, rect,
index 5633c29e7dcb98fb58891d617b4478b1e377efe6..7a75044c94d2ea14fd13e9ecdc05ca43708b2e03 100644 (file)
@@ -28,7 +28,7 @@ using std::cout;
 using boost::shared_ptr;
 
 TimelineDialog::TimelineDialog (wxWindow* parent, shared_ptr<Playlist> pl)
-       : wxDialog (parent, wxID_ANY, _("Timeline"), wxDefaultPosition, wxSize (640, 512), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
+       : wxDialog (parent, wxID_ANY, _("Timeline"), wxDefaultPosition, wxSize (640, 512), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxFULL_REPAINT_ON_RESIZE)
        , _timeline (this, pl)
 {
        wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);