summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-27 19:51:27 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-27 19:51:27 +0000
commitc4a67bdee0eed651e4d99689aed949902af76c45 (patch)
tree13780c36871af86f7decf02cf673cae382be2b18 /src/wx/audio_plot.cc
parenta6901cb85be6e7664375b68c8315c32d57de8107 (diff)
Fixes for wx 2.8.
Diffstat (limited to 'src/wx/audio_plot.cc')
-rw-r--r--src/wx/audio_plot.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc
index 23cbabcdc..9b2e6b1b0 100644
--- a/src/wx/audio_plot.cc
+++ b/src/wx/audio_plot.cc
@@ -146,7 +146,11 @@ AudioPlot::paint (wxPaintEvent &)
plot_peak (p, c);
}
wxColour const col = _colours[c];
- gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2)));
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxPENSTYLE_SOLID));
+#else
+ gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxSOLID));
+#endif
gc->StrokePath (p);
}
}
@@ -158,7 +162,11 @@ AudioPlot::paint (wxPaintEvent &)
plot_rms (p, c);
}
wxColour const col = _colours[c];
- gc->SetPen (*wxThePenList->FindOrCreatePen (col));
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ gc->SetPen (*wxThePenList->FindOrCreatePen (col, 1, wxPENSTYLE_SOLID));
+#else
+ gc->SetPen (*wxThePenList->FindOrCreatePen (col, 1, wxSOLID));
+#endif
gc->StrokePath (p);
}
}