Fix Bitinvader waveform cutoff behavior

This commit is contained in:
Douglas
2019-02-13 11:46:47 -07:00
committed by Hyunjin Song
parent fcacf44375
commit 8d707df171
3 changed files with 19 additions and 28 deletions

View File

@@ -692,7 +692,15 @@ void graphModel::shiftPhase( int _deg )
emit samplesChanged( 0, length()-1 );
}
// Clear any part of the graph that isn't displayed
void graphModel::clearInvisible()
{
const int graph_length = length();
const int full_graph_length = m_samples.size();
for( int i = graph_length; i < full_graph_length; i++ )
m_samples[i] = 0;
emit samplesChanged( graph_length, full_graph_length - 1 );
}
void graphModel::drawSampleAt( int x, float val )
{