hedgewars/uTouch.pas
changeset 7246 7773a1c92e1b
parent 7237 1bbe31e0d707
child 7850 fcbb024090a4
--- 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;