From 908d1cadae0581103d7b779879ca77767d644913 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 20 Nov 2011 04:25:05 +0000 Subject: [PATCH] Pass the audio renderer absolute coordinates rather than relative so that audio actually scrolls Originally committed to SVN as r5898. --- aegisub/src/audio_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/audio_display.cpp b/aegisub/src/audio_display.cpp index 3e05255bf..f3be81f32 100644 --- a/aegisub/src/audio_display.cpp +++ b/aegisub/src/audio_display.cpp @@ -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); } }