Fix clipping issues in classic theme
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@2062 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
* src/gui/cusis_style.cpp:
|
||||
Add per-TCO coloring and non-linear motion when dragging
|
||||
|
||||
* src/gui/classic_style.cpp:
|
||||
Fix text clipping
|
||||
|
||||
2009-02-19 Paul Giblock <drfaygo/at/gmail/dot/com>
|
||||
|
||||
* include/track.h:
|
||||
|
||||
@@ -449,10 +449,10 @@ void ClassicStyle::drawTrackContentObject( QPainter * _painter,
|
||||
rc.height() - 2 * TCO_BORDER_WIDTH );
|
||||
}
|
||||
|
||||
p->setClipRect( rc.adjusted( 1, 1, -1, -1 ) );
|
||||
if( pat->type() == pattern::MelodyPattern )
|
||||
{
|
||||
int central_key = 0;
|
||||
p->setClipRect( rc.adjusted( 1, 1, -1, -1 ) );
|
||||
if( pat->notes().size() > 0 )
|
||||
{
|
||||
// first determine the central tone so that we can
|
||||
@@ -516,7 +516,6 @@ void ClassicStyle::drawTrackContentObject( QPainter * _painter,
|
||||
p->setRenderHint( QPainter::Antialiasing, true );
|
||||
}
|
||||
}
|
||||
p->setClipping( false );
|
||||
}
|
||||
/*
|
||||
else if( pat->type() == pattern::BeatPattern &&
|
||||
@@ -613,6 +612,7 @@ void ClassicStyle::drawTrackContentObject( QPainter * _painter,
|
||||
*/
|
||||
}
|
||||
|
||||
p->setClipping( false );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user