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:
Paul Giblock
2008-04-25 05:25:20 +00:00
parent b5ec90ea39
commit 3dc51ba506
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
- Allow volume bars to be modified by clicking one bar, then
sweeping the mouse
- shade volume bars according to volume
- fixed drawing of background while scrolling
2008-04-20 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>

View File

@@ -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 )
{