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:
Paul Giblock
2009-01-28 19:48:03 +00:00
parent 86313160e6
commit 184c1855d8
3 changed files with 13 additions and 2 deletions

View File

@@ -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();
}

View File

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