Skip to content

Commit

Permalink
MythMusic: fix bug that WaveForm drew rectangles at FFWD
Browse files Browse the repository at this point in the history
  • Loading branch information
twitham1 authored and linuxdude42 committed Aug 18, 2023
1 parent 725e817 commit f93f766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythplugins/mythmusic/mythmusic/visualize.cpp
Expand Up @@ -668,7 +668,8 @@ bool WaveForm::processUndisplayed(VisualNode *node)
uint xx = m_wfsize.width() * m_offset / m_duration;
if (xx != m_lastx) // draw one finished line of min/max/rms
{
if (m_lastx > xx - 1) // right to left wrap
if (m_lastx > xx - 1 || // REW seek or right to left edge wrap
m_lastx <= xx - 5 * m_duration / m_wfsize.width()) // FFWD
{
m_lastx = xx - 1;
}
Expand Down

0 comments on commit f93f766

Please sign in to comment.