diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-08 23:02:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-08 23:02:35 +0100 |
| commit | 12efbd5938f08eb445b43f539fa4f27aa5caccfb (patch) | |
| tree | ff931f920b30ad187942206268d9f18b3f06448d /src/wx/audio_plot.cc | |
| parent | 630a56ad9e7ecfb42b1d761098820f9e492f9c4e (diff) | |
| parent | 0ae086a90ef262fed4e265df197fd62fcdfbccf7 (diff) | |
Merge master.
Diffstat (limited to 'src/wx/audio_plot.cc')
| -rw-r--r-- | src/wx/audio_plot.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index c4e5d992f..641ddd503 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -159,7 +159,7 @@ AudioPlot::paint () gc->DrawText (std_to_wx (String::compose ("%1dB", i)), 0, y - (db_label_height / 2)); } - gc->SetPen (*wxLIGHT_GREY_PEN); + gc->SetPen (wxPen (wxColour (200, 200, 200))); gc->StrokePath (grid); gc->DrawText (_("Time"), data_width, metrics.height - metrics.y_origin + db_label_height / 2); @@ -171,7 +171,7 @@ AudioPlot::paint () plot_peak (p, c, metrics); } wxColour const col = _colours[c]; - gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxPENSTYLE_SOLID)); + gc->SetPen (wxPen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxPENSTYLE_SOLID)); gc->StrokePath (p); } } @@ -183,7 +183,7 @@ AudioPlot::paint () plot_rms (p, c, metrics); } wxColour const col = _colours[c]; - gc->SetPen (*wxThePenList->FindOrCreatePen (col, 1, wxPENSTYLE_SOLID)); + gc->SetPen (wxPen (col, 1, wxPENSTYLE_SOLID)); gc->StrokePath (p); } } @@ -192,7 +192,7 @@ AudioPlot::paint () axes.MoveToPoint (metrics.db_label_width, 0); axes.AddLineToPoint (metrics.db_label_width, metrics.height - metrics.y_origin); axes.AddLineToPoint (metrics.db_label_width + data_width, metrics.height - metrics.y_origin); - gc->SetPen (*wxBLACK_PEN); + gc->SetPen (wxPen (wxColour (0, 0, 0))); gc->StrokePath (axes); delete gc; |
