Browse Source

Merge pull request #1038 from stenyak/fix-cursor-show-bug

Fix off-by-one error in cursor hiding/showing function
Daniel Buckmaster 10 years ago
parent
commit
f85fc550c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/windowManager/win32/win32CursorController.cpp

+ 1 - 1
Engine/source/windowManager/win32/win32CursorController.cpp

@@ -106,7 +106,7 @@ void Win32CursorController::setCursorVisible( bool visible )
    if( visible )
       ShowCursor( true );
    else
-      while( ShowCursor(false) > 0 );
+      while( ShowCursor(false) >= 0 );
 }
 
 bool Win32CursorController::isCursorVisible()