branch | transitional_engine |
changeset 15929 | 128ace913837 |
parent 14559 | 1dab5d92aca7 |
--- a/hedgewars/uTouch.pas Tue Dec 13 21:21:55 2022 +0100 +++ b/hedgewars/uTouch.pas Mon Jan 02 15:59:26 2023 +0100 @@ -613,7 +613,7 @@ fingerHasMoved := trunc(sqrt(sqr(finger.X-finger.historicalX) + sqr(finger.y-finger.historicalY))) > 30; end; -function calculateDelta(finger1, finger2: TTouch_Data): LongInt; inline; +function calculateDelta(finger1, finger2: TTouch_Data): LongInt; begin calculateDelta := Round(sqrt(sqr(finger2.x-finger1.x) + sqr(finger2.y-finger1.y))); end;