Pass the audio renderer absolute coordinates rather than relative so that audio actually scrolls

Originally committed to SVN as r5898.
This commit is contained in:
Thomas Goyne 2011-11-20 04:25:05 +00:00
parent d67cc6032b
commit 908d1cadae

View file

@ -861,7 +861,7 @@ void AudioDisplay::OnPaint(wxPaintEvent& event)
if (range_x2 > range_x1)
{
audio_renderer->Render(dc, wxPoint(range_x1, audio_top), range_x1, range_x2 - range_x1, range_style);
audio_renderer->Render(dc, wxPoint(range_x1, audio_top), range_x1 + scroll_left, range_x2 - range_x1, range_style);
}
}