diff options
Diffstat (limited to 'src/wx/audio_plot.cc')
| -rw-r--r-- | src/wx/audio_plot.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index 1ad07fcce..41d074dad 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -65,15 +65,17 @@ AudioPlot::paint (wxPaintEvent &) { wxPaintDC dc (this); - if (!_analysis) { - return; - } - wxGraphicsContext* gc = wxGraphicsContext::Create (dc); if (!gc) { return; } + if (!_analysis) { + gc->SetFont (gc->CreateFont (*wxNORMAL_FONT)); + gc->DrawText (_("Please wait; audio is being analysed..."), 32, 32); + return; + } + int const width = GetSize().GetWidth(); float const xs = width / float (_analysis->points (_channel)); int const height = GetSize().GetHeight (); |
