widget: use rational for internal playhead value

Fixes #1688
This commit is contained in:
itsmattkc
2021-08-02 10:55:01 -07:00
parent 4510f6d36a
commit 438cce1ce5
38 changed files with 217 additions and 334 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ void AudioWaveformView::paintEvent(QPaintEvent *event)
// Draw playhead
p.setPen(PLAYHEAD_COLOR);
int playhead_x = UnitToScreen(GetTime());
int playhead_x = TimeToScreen(GetTime());
p.drawLine(playhead_x, 0, playhead_x, height());
}