Browse Source

fix small bug

cxgeorge 24 years ago
parent
commit
39d7a31ccf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/wdxdisplay/wdxGraphicsWindow.cxx

+ 2 - 2
panda/src/wdxdisplay/wdxGraphicsWindow.cxx

@@ -601,7 +601,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
         return 0;
         return 0;
     
     
     case WM_ENTERSIZEMOVE: {
     case WM_ENTERSIZEMOVE: {
-            if(_dxgsg==NULL)
+            if(_dxgsg!=NULL)
                 _dxgsg->SetDXReady(true);   // dont disable here because I want to see pic as I resize
                 _dxgsg->SetDXReady(true);   // dont disable here because I want to see pic as I resize
             _WindowAdjustingType = MovingOrResizing;
             _WindowAdjustingType = MovingOrResizing;
         }
         }
@@ -2491,7 +2491,7 @@ void wdxGraphicsWindow::handle_mouse_motion(int x, int y) {
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-//     Function: handle_mouse_entry
+//     Function: handle_mouse_exit
 //       Access:
 //       Access:
 //  Description:
 //  Description:
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////