소스 검색

WindowHeader mouse

-Fix: Native mouse was not showing on the header of the window.
marauder2k7 5 년 전
부모
커밋
ba4d34d871
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      engine/source/gui/guiCanvas_ScriptBinding.h
  2. 3 1
      engine/source/platformWin32/winWindow.cc

+ 1 - 1
engine/source/gui/guiCanvas_ScriptBinding.h

@@ -157,7 +157,7 @@ ConsoleMethodWithDocs( GuiCanvas, setCursor, ConsoleVoid, 3, 3, ( cursorHandle )
 */
 ConsoleMethodWithDocs(GuiCanvas, resetCursor, void, 2, 2, ())
 {
-  // Canvas->useNativeCursor(true);
+   //Canvas->useNativeCursor(true);
    Canvas->showCursor(false);
    Input::refreshCursor();
 }

+ 3 - 1
engine/source/platformWin32/winWindow.cc

@@ -948,12 +948,14 @@ case WM_IME_CHAR:
    // the cursor is *actually* going to be shown.
 case WM_NCMOUSEMOVE:
    {
+      while (ShowCursor(TRUE) < 0);
       break;
    }
 
 case WM_MOUSEMOVE:
    // keep trying until we actually show it
-   //Input::refreshCursor();
+   while (ShowCursor(FALSE) >= 0);
+   Input::refreshCursor();
 
    if ( !windowLocked )
    {