fixed color for drawing pattern-name to make it better readable at orange background

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1203 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-29 09:34:30 +00:00
parent 40aaf6f169
commit 30aea72c9c

View File

@@ -625,8 +625,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
const float max = m_pat->firstObject()->maxValue<float>();
const float y_scale = max - min;
const float h = ( height()-2*TCO_BORDER_WIDTH ) /
y_scale;
const float h = ( height()-2*TCO_BORDER_WIDTH ) / y_scale;
p.translate( 0.0f, max * height() / y_scale-1 );
p.scale( 1.0f, -h );
@@ -673,7 +672,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
}
else
{
p.setPen( QColor( 32, 240, 32 ) );
p.setPen( QColor( 0, 64, 255 ) );
}
p.drawText( 2, p.fontMetrics().height() - 1, m_pat->name() );