Improve graph and bitinvader

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1105 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-06-08 12:59:42 +00:00
parent efc8c7bbfa
commit 239e4fb4bd
4 changed files with 81 additions and 21 deletions

View File

@@ -330,7 +330,7 @@ bitInvaderView::bitInvaderView( instrument * _instrument,
m_sampleLengthKnob->move( 10, 120 );
m_sampleLengthKnob->setHintText( tr( "Sample Length" ) + " ", "" );
m_graph = new graph( this );
m_graph = new graph( this, graph::NearestStyle );
m_graph->move(53,118); // 55,120 - 2px border
m_graph->setAutoFillBackground( TRUE );
@@ -536,6 +536,7 @@ void bitInvaderView::smoothClicked( void )
void bitInvaderView::interpolationToggled( bool value )
{
m_graph->setGraphStyle( value ? graph::LinearStyle : graph::NearestStyle);
engine::getSong()->setModified();
}