diff -r 580cd247511e -r 5d0704f23a2a hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Tue Jun 05 22:37:36 2012 +0200 +++ b/hedgewars/uWorld.pas Mon Jun 25 10:44:27 2012 +0200 @@ -215,11 +215,7 @@ {$IFDEF USE_TOUCH_INTERFACE} //positioning of the buttons -{$IFDEF ANDROID} -buttonScale:= Android_JNI_getDensity()/cDefaultZoomLevel; -{$ELSE} -buttonScale:= 1.5/cDefaultZoomLevel; -{$ENDIF} +buttonScale:= uMobile.getScreenDPI/cDefaultZoomLevel; with JumpWidget do @@ -1490,9 +1486,6 @@ DrawTexture((cScreenWidth shr 1) - 60 - offsetY, offsetX, fpsTexture); end; - if CountTicks >= 1000 then - CountTicks:= 0; - // lag warning (?) inc(SoundTimerTicks, Lag); end; @@ -1584,7 +1577,10 @@ {$ENDIF} z:= round(200/zoom); if not PlacingHogs and (FollowGear <> nil) and (not isCursorVisible) and (not bShowAmmoMenu) and (not fastUntilLag) then - if (not autoCameraOn) or ((abs(CursorPoint.X - prevPoint.X) + abs(CursorPoint.Y - prevpoint.Y)) > 4) then + if (not autoCameraOn) then + FollowGear:= nil + else + if ((abs(CursorPoint.X - prevPoint.X) + abs(CursorPoint.Y - prevpoint.Y)) > 4) then begin FollowGear:= nil; prevPoint:= CursorPoint; @@ -1634,7 +1630,7 @@ EdgesDist:= cGearScrEdgesDist; // this generates the border around the screen that moves the camera when cursor is near it -if isCursorVisible or (FollowGear <> nil) then +if isCursorVisible or ((FollowGear <> nil) and autoCameraOn) then begin if CursorPoint.X < - cScreenWidth div 2 + EdgesDist then begin