Changeset 1288

Show
Ignore:
Timestamp:
10/19/07 17:09:40 (12 months ago)
Author:
calvin
Message:

fix issue where pattern edits leak into other pattern editors (with 2 or more pattern editors open), also fix a tiny flicker issue when drawing samples in CWaveEditorCtrl, documented a few more wavetable shortcuts in F1-help

Location:
trunk/src/buzelib
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/buzelib/PatternView.cpp

    r1287 r1288  
    542542                        // TODO: setvalue each edit from PatternEdit*-thingy instead of rendering everything again 
    543543                        PatternEdit* edit = (PatternEdit*)pHint; 
    544                         for (int i = 0; i < edit->edits.size(); i++) { 
    545                                 const PatternEdit::PATTERNEDIT& col = edit->edits[i]; 
    546                                 patternEditor.SetValue(col.group, col.track, col.column, col.row, col.value); 
     544                        if (edit->machine == machine->getName() && machine->getPattern(edit->patternIndex) == pattern) { 
     545                                for (int i = 0; i < edit->edits.size(); i++) { 
     546                                        const PatternEdit::PATTERNEDIT& col = edit->edits[i]; 
     547                                        patternEditor.SetValue(col.group, col.track, col.column, col.row, col.value); 
     548                                } 
     549                                bindStatus(); 
    547550                        } 
    548                         bindStatus(); 
    549551                        break; 
    550552                } 
     
    15481550 
    15491551LRESULT CPatternView::OnSelChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { 
     1552        bindStatus(); 
    15501553        return 0; 
    15511554} 
  • trunk/src/buzelib/WaveEditorCtrl.cpp

    r1286 r1288  
    125125        if (waveChannels==2) { 
    126126                height/=2; 
    127                 height-=1; 
     127                height-=2; 
    128128        } 
    129129 
  • trunk/src/buzelib/res/keyboard_wavetable.txt

    r1218 r1288  
    33 
    44        F9                                      Show file browser 
     5        Shift+A                         Zoom out, show all 
     6        Shift+S                         Zoom to selection 
     7        Shift+Down                      Zoom in 
     8        Shift+Up                        Zoom out