, _gain (0)
{
SetDoubleBuffered (true);
-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
- SetBackgroundStyle (wxBG_STYLE_PAINT);
-#endif
for (int i = 0; i < MAX_AUDIO_CHANNELS; ++i) {
_channel_visible[i] = false;
float const xs = width / float (_analysis->points (0));
int const height = GetSize().GetHeight ();
float const ys = height / -_minimum;
+ int const border = 8;
wxGraphicsPath grid = gc->CreatePath ();
gc->SetFont (gc->CreateFont (*wxSMALL_FONT));
gc->SetPen (*wxLIGHT_GREY_PEN);
gc->StrokePath (grid);
+ wxGraphicsPath axes = gc->CreatePath ();
+ axes.MoveToPoint (border, border);
+ axes.AddLineToPoint (border, height - border);
+ axes.AddLineToPoint (width - border, height - border);
+ gc->SetPen (*wxBLACK_PEN);
+ gc->StrokePath (axes);
+
for (int c = 0; c < MAX_AUDIO_CHANNELS; ++c) {
if (!_channel_visible[c] || c >= _analysis->channels()) {
continue;
, _got_frame (false)
, _clear_required (false)
{
+ _panel->SetDoubleBuffered (true);
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ _panel->SetBackgroundStyle (wxBG_STYLE_PAINT);
+#endif
+
_v_sizer = new wxBoxSizer (wxVERTICAL);
SetSizer (_v_sizer);