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:
@@ -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 ) )
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user