# HG changeset patch # User koda # Date 1339626083 -7200 # Node ID 7773a1c92e1b4940196f2a1bfcde758bd7655183 # Parent 75197d981acb5b6d14519b887b4098c7c10b00b3 it was inevitable diff -r 75197d981acb -r 7773a1c92e1b hedgewars/uTouch.pas --- a/hedgewars/uTouch.pas Thu Jun 14 00:10:06 2012 +0200 +++ b/hedgewars/uTouch.pas Thu Jun 14 00:21:23 2012 +0200 @@ -632,7 +632,6 @@ var index: Longword; //uRenderCoordScaleX, uRenderCoordScaleY: Longword; - density: Single; begin buttonsDown:= 0; @@ -640,13 +639,7 @@ for index := 0 to High(fingers) do fingers[index].id := nilFingerId; -{$IFDEF ANDROID} - density:= Android_JNI_getDensity(); -{$ELSE} - density:= 1.0; -{$ENDIF} - - rectSize:= round(baseRectSize * density); + rectSize:= round(baseRectSize * uMobile.getScreenDPI); halfRectSize:= rectSize shl 1; end;