diff -r 7ee319134713 -r bc7b1d228a2c hedgewars/uMobile.pas --- a/hedgewars/uMobile.pas Thu Aug 30 12:47:41 2012 -0400 +++ b/hedgewars/uMobile.pas Thu Aug 30 13:02:19 2012 -0400 @@ -28,7 +28,7 @@ interface function isPhone: Boolean; inline; -function getScreenDPI: Single; inline; +function getScreenDPI: Double; inline; procedure performRumble; inline; procedure GameLoading; inline; @@ -36,7 +36,7 @@ procedure SaveLoadingEnded; inline; implementation -uses uVariables, uConsole; +uses uVariables, uConsole, SDLh; // add here any external call that you need {$IFDEF IPHONEOS} @@ -48,10 +48,6 @@ procedure AudioServicesPlaySystemSound(num: LongInt); cdecl; external; {$ENDIF} -{$IFDEF ANDROID} -function Android_JNI_getDensity(): Single; cdecl; external; -{$ENDIF} - // this function is just to determine whether we are running on a limited screen device function isPhone: Boolean; inline; begin @@ -66,10 +62,11 @@ {$ENDIF} end; -function getScreenDPI: Single; inline; +function getScreenDPI: Double; inline; begin {$IFDEF ANDROID} - getScreenDPI:= Android_JNI_getDensity(); +// getScreenDPI:= Android_JNI_getDensity(); + getScreenDPI:= 1; {$ELSE} getScreenDPI:= 1; {$ENDIF}