mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 00:05:40 +00:00
Fix off-by-one error in cursor hiding/showing function
Incorrect API use according to msdn. Source: http://msdn.microsoft.com/en-us/library/windows/desktop/ms648396%28v=vs.85%29.aspx "cursor is displayed only if the display count is greater than or equal to 0"
This commit is contained in:
parent
4210c002bb
commit
046f4e4e2d
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ void Win32CursorController::setCursorVisible( bool visible )
|
||||||
if( visible )
|
if( visible )
|
||||||
ShowCursor( true );
|
ShowCursor( true );
|
||||||
else
|
else
|
||||||
while( ShowCursor(false) > 0 );
|
while( ShowCursor(false) >= 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Win32CursorController::isCursorVisible()
|
bool Win32CursorController::isCursorVisible()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue