Changeset 1337

Show
Ignore:
Timestamp:
01/01/08 15:35:46 (8 months ago)
Author:
calvin
Message:

must hold ctrl to dock floating windows, uninitialized variable caused disappearing windows, dont crash when dropping waves on wavetable scrollbar

Location:
trunk/src/buzelib
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/buzelib/DockTabFrame/DockTabFrame.h

    r1273 r1337  
    14111411                                , sourcePaneWnd( NULL) 
    14121412                                , targetPaneWnd( NULL) 
     1413                                , targetRect(0, 0, 0, 0) 
    14131414                        {} 
    14141415                         
     
    30803081                         
    30813082                        // check if a user holds CTRL key 
    3082                         if (    MK_CONTROL & keysPressed 
     3083                        if (    (MK_CONTROL & keysPressed) == 0 
    30833084//                           || ( this->dragContext->stateSet.isFloating() 
    30843085                                 || ( this->dragContext->stateSet.dockable && this->dragContext->stateSet.null) 
    30853086                           ) 
    3086                                         goto dragOver_exit; // noway to drop with floating state or CTRL key pressed 
     3087                                        goto dragOver_exit; // noway to drop with floating state or CTRL key unpressed 
    30873088                         
    30883089                        // check if the cursor over a float frame 
  • trunk/src/buzelib/WaveTableList.cpp

    r1295 r1337  
    3131        ScreenToClient(&pt); 
    3232        int curWave = this->HitTest(pt, 0); 
     33        if (curWave == -1) return 0; 
    3334 
    3435        SetRedraw(FALSE); 
  • trunk/src/buzelib/buze.rc

    r1333 r1337  
    41413 TEXTINCLUDE  
    4242BEGIN 
    43         "#if (_MSC_VER <= 1300)\r\n" 
     43        "#if (_MSC_VER < 1400)\r\n" 
    4444    "CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST ""res\\\\buze.exe.manifest""\r\n" 
    4545        "#endif\r\n" 
     
    12401240// Generated from the TEXTINCLUDE 3 resource. 
    12411241// 
    1242 #if (_MSC_VER <= 1300) 
     1242#if (_MSC_VER < 1400) 
    12431243CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "res\\buze.exe.manifest" 
    12441244#endif