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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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