From dde24a89ed189e1ffa4374635b8d5cfe94720e52 Mon Sep 17 00:00:00 2001 From: xenakios Date: Thu, 20 Sep 2018 02:26:11 +0300 Subject: [PATCH] Revert back to the old play cursor... --- Source/PluginEditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 6787ecd..fcab4fd 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -706,9 +706,9 @@ void WaveformComponent::paint(Graphics & g) double prebufoffset = (double)m_sas->m_prebuffersize / m_sas->getOutputSamplerate(); curpos -= prebufoffset; curpos = 1.0 / m_sas->getInfileLengthSeconds()*(curpos+(timediff / 1000.0)); - g.fillRect(normalizedToViewX(curpos), m_topmargin, 1, getHeight() - m_topmargin); - g.drawText(String(curpos), 1, 30, 200,30, Justification::left); - //g.fillRect(normalizedToViewX(CursorPosCallback()), m_topmargin, 1, getHeight() - m_topmargin); + //g.fillRect(normalizedToViewX(curpos), m_topmargin, 1, getHeight() - m_topmargin); + //g.drawText(String(curpos), 1, 30, 200,30, Justification::left); + g.fillRect(normalizedToViewX(CursorPosCallback()), m_topmargin, 1, getHeight() - m_topmargin); } if (m_rec_pos >= 0.0) {