fixed: don't send text lines that won't be displayed

This commit is contained in:
Bob van Loosen 2012-12-26 23:04:48 +01:00
parent e5ca9dfde8
commit 42c059719e

View file

@ -373,7 +373,8 @@ void CBitVis::SendData(int64_t time)
}
SetText(text, currentsong.c_str());
data.SetData(text, sizeof(text), true);
if (m_fontdisplay > 0)
data.SetData(text, m_nrcolumns / 4 * m_fontdisplay, true);
uint8_t end[10];
memset(end, 0, sizeof(end));