it was inevitable
authorkoda
Thu, 14 Jun 2012 00:21:23 +0200 (2012-06-13)
changeset 7246 7773a1c92e1b
parent 7244 75197d981acb
child 7248 0ee403b190b5
it was inevitable
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;