Attempt to fix graphical glitches
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1983 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1173,10 +1173,13 @@ void trackContentWidget::updateBackground( void )
|
||||
int width = ppt * tactsPerBar;
|
||||
|
||||
m_background = QPixmap( width * 2, height() );
|
||||
QPainter pmp( &m_background );
|
||||
QPainter pmp;
|
||||
pmp.begin( &m_background );
|
||||
|
||||
engine::getLmmsStyle()->drawTrackContentBackground( &pmp,
|
||||
QSize( width, height() ), ppt );
|
||||
|
||||
pmp.end();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -61,8 +61,11 @@ public:
|
||||
|
||||
virtual void paintEvent( QPaintEvent * )
|
||||
{
|
||||
engine::getLmmsStyle()->drawFxLine( &QPainter(this),
|
||||
QPainter painter;
|
||||
painter.begin(this);
|
||||
engine::getLmmsStyle()->drawFxLine( &painter,
|
||||
this, m_name, m_mv->currentFxLine() == this );
|
||||
painter.end();
|
||||
}
|
||||
|
||||
virtual void mousePressEvent( QMouseEvent * )
|
||||
|
||||
Reference in New Issue
Block a user