hedgewars/uWorld.pas
changeset 12798 575c0de98505
parent 12792 a6f51ac9a3f2
child 12836 1fbc0d5a82d0
--- a/hedgewars/uWorld.pas	Sat Oct 28 07:59:41 2017 +0200
+++ b/hedgewars/uWorld.pas	Sat Oct 28 17:48:54 2017 +0200
@@ -2014,10 +2014,10 @@
 
 procedure updateCursorVisibility;
 begin
-    if isPaused or isAFK then
-        SDL_ShowCursor(1)
+    if isPaused or isAFK or (GameState = gsConfirm) then
+        uCursor.setSystemCursor(true)
     else
-        SDL_ShowCursor(ord(GameState = gsConfirm))
+        uCursor.setSystemCursor(false);
 end;
 
 procedure SetUtilityWidgetState(ammoType: TAmmoType);