Fix some audio display rendering quirks on retina OS X

This commit is contained in:
Thomas Goyne 2016-04-08 17:51:14 -07:00
parent 8d3ad9ff68
commit 70edb03b2a
1 changed files with 2 additions and 2 deletions

View File

@ -997,8 +997,8 @@ void AudioDisplay::SetTrackCursor(int new_pos, bool show_time)
int old_pos = track_cursor_pos;
track_cursor_pos = new_pos;
RefreshRect(wxRect(old_pos - scroll_left - 0, audio_top, 1, audio_height), false);
RefreshRect(wxRect(new_pos - scroll_left - 0, audio_top, 1, audio_height), false);
RefreshRect(wxRect(old_pos - scroll_left - 1, audio_top, 2, audio_height - 1), false);
RefreshRect(wxRect(new_pos - scroll_left - 1, audio_top, 2, audio_height - 1), false);
// Make sure the old label gets cleared away
RefreshRect(track_cursor_label_rect, false);