From 781013c8fa3e634d9b1a4882e8ffe1ae876955da Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Sun, 18 May 2008 17:29:42 +0000 Subject: [PATCH] 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 --- src/core/track.cpp | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/core/track.cpp b/src/core/track.cpp index 61c42963d..3e5b468b9 100644 --- a/src/core/track.cpp +++ b/src/core/track.cpp @@ -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 ) ); } -*/ }