hedgewars/uWorld.pas
changeset 2671 7e0f88013fe8
parent 2670 1b327b7515ed
child 2682 d4c395f25db2
--- a/hedgewars/uWorld.pas	Thu Dec 24 13:38:20 2009 +0000
+++ b/hedgewars/uWorld.pas	Sun Jan 03 15:40:41 2010 +0000
@@ -346,7 +346,7 @@
 
 {$IFDEF IPHONEOS}
 {* see the code in MainLoop *}
-SDL_GetMouseState(0, @x, @y);
+SDL_GetMouseState(@x, @y);
 if ((x > 50) and (x <= 270) and (y > 50) and (y <= 330)) then
 {$ENDIF}
 if not isPaused then MoveCamera;
@@ -641,11 +641,7 @@
 begin
 if (not (CurrentTeam^.ExtDriven and isCursorVisible)) and cHasFocus then
 	begin
-{$IFDEF SDL13}
-	SDL_GetMouseState(0, @CursorPoint.X, @CursorPoint.Y);
-{$ELSE}
 	SDL_GetMouseState(@CursorPoint.X, @CursorPoint.Y);
-{$ENDIF}
 	CursorPoint.X:= CursorPoint.X - (cScreenWidth shr 1);
 	CursorPoint.Y:= cScreenHeight - CursorPoint.Y;
 	end;