Fixed drawing of piano roll background while scrolling
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@936 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1819,7 +1819,8 @@ void pianoRoll::paintEvent( QPaintEvent * _pe )
|
||||
// draw vertical raster
|
||||
int tact_16th = m_currentPosition / ( DefaultTicksPerTact / 16 );
|
||||
const int offset = ( m_currentPosition % (DefaultTicksPerTact/16) ) *
|
||||
m_ppt / DEFAULT_STEPS_PER_TACT / 8;
|
||||
m_ppt / DefaultTicksPerTact;
|
||||
|
||||
for( int x = WHITE_KEY_WIDTH - offset; x < width();
|
||||
x += m_ppt / DEFAULT_STEPS_PER_TACT, ++tact_16th )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user