Initial lb303 (no compat), fixed auto-detect, fix knob drawing

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1298 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-07-08 14:34:41 +00:00
parent bbafb51627
commit b166f11ffd
11 changed files with 1279 additions and 2 deletions

View File

@@ -66,8 +66,9 @@ public:
virtual void processInEvent( const midiEvent & _me,
const midiTime & _time, bool _lock )
const midiTime & _time )
{
printf("ho hum\n");
if( _me.m_type == MidiControlChange &&
( m_midiPort.inputChannel() == _me.m_channel + 1 ||
m_midiPort.inputChannel() == 0 ) )

View File

@@ -278,7 +278,7 @@ bool knob::updateAngle( void )
void knob::drawKnob( QPainter * _p )
{
if( updateAngle() == FALSE )
if( updateAngle() == FALSE && !m_cache.isNull() )
{
_p->drawImage( 0, 0, m_cache );
return;