diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-06 15:41:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-06 15:41:51 +0100 |
| commit | fdf7a3a9d7dbac9fe41a2e96b47f1d053b7b0f76 (patch) | |
| tree | eb7ab3e4d6e58e02aa2677c7f7a51fd05f8687a1 /src | |
| parent | 84be56b8107b812f16b6b244f8184c0983eaed6f (diff) | |
Try to fix lack of redraw on resize on Windows; also corrupted background to checkbox in AudioMappingView.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_dialog.cc | 2 | ||||
| -rw-r--r-- | src/wx/audio_mapping_view.cc | 2 | ||||
| -rw-r--r-- | src/wx/timeline_dialog.cc | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc index 15d746839..d1d13ab78 100644 --- a/src/wx/audio_dialog.cc +++ b/src/wx/audio_dialog.cc @@ -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); diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index a5dacdfc2..878db3af2 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -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, diff --git a/src/wx/timeline_dialog.cc b/src/wx/timeline_dialog.cc index 5633c29e7..7a75044c9 100644 --- a/src/wx/timeline_dialog.cc +++ b/src/wx/timeline_dialog.cc @@ -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); |
