when drawing automation, do not overpaint border

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1202 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-29 09:30:23 +00:00
parent 16cfe0654c
commit 40aaf6f169
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
2008-06-28 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/automation_pattern.cpp:
when drawing automation, do not overpaint border
* data/themes/default/fx_mixer.png:
new icon at 32x32 px to make it scale better to 16x16
2008-06-29 Paul Giblock <drfaygo/at/gmail/dot/com>
* plugins/sf2_player/sf2_player.cpp:

View File

@@ -628,7 +628,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
const float h = ( height()-2*TCO_BORDER_WIDTH ) /
y_scale;
p.translate( 0.0f, max * height() / y_scale );
p.translate( 0.0f, max * height() / y_scale-1 );
p.scale( 1.0f, -h );
//QLinearGradient lin2grad( 0, min, 0, max );
@@ -659,7 +659,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
}
else
{
x2 = width() - TCO_BORDER_WIDTH + 1;
x2 = width() - TCO_BORDER_WIDTH;
}
p.fillRect( QRectF( x1, 0.0f, x2-x1, it.value() ),
lin2grad /*QColor( 255, 224, 0 )*/ );