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

@@ -40,6 +40,7 @@
* src/gui/widgets/controller_view.cpp:
* src/gui/widgets/effect_view.cpp:
* src/gui/widgets/project_notes.cpp:
* src/core/track.cpp:
* src/gui/piano_roll.cpp:
* src/core/timeline.cpp:
- Begin themeing widgets with the new LmmsStyle interface
@@ -48,6 +49,10 @@
* src/gui/widgets/envelope_and_lfo_view.cpp:
Fix backwards Color-to-gray in env and LFO graphs
* src/core/track.cpp:
* src/gui/fx_mixer_view.cpp:
Attempt to fix Skiessi's gfx bugs
2009-01-26 Paul Giblock <drfaygo/at/gmail/dot/com>
* src/tracks/bb_track.cpp:

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