Don't draw background on BB-Editor
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@990 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -897,29 +897,12 @@ void trackContentWidget::paintEvent( QPaintEvent * _pe )
|
||||
last_ppt = ppt;
|
||||
}
|
||||
|
||||
|
||||
p.drawTiledPixmap( rect(), backgrnd, QPoint(
|
||||
tcv->currentPosition().getTact() * ppt, 0 ) );
|
||||
|
||||
/*
|
||||
if( !tcv->fixedTCOs() )
|
||||
// Don't draw background on BB-Editor
|
||||
if( m_trackView->getTrackContainerView() != engine::getBBEditor() )
|
||||
{
|
||||
const int offset = (int)( ( tcv->currentPosition() % 4 ) *
|
||||
tcv->pixelsPerTact() );
|
||||
|
||||
int flipper = (tcv->currentPosition()/DefaultTicksPerTact) % 8;
|
||||
|
||||
for( int x = 0; x < width(); x+= (int) tcv->pixelsPerTact() ) {
|
||||
if( flipper >= 4 )
|
||||
{
|
||||
p.fillRect( QRect(x, 0,
|
||||
(int) tcv->pixelsPerTact(), height() ),
|
||||
QColor( 64, 68, 80 ) );
|
||||
}
|
||||
flipper = (flipper+1)%8;
|
||||
}
|
||||
p.drawTiledPixmap( rect(), backgrnd, QPoint(
|
||||
tcv->currentPosition().getTact() * ppt, 0 ) );
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user