hedgewars/uWorld.pas
changeset 7186 013deb83086b
parent 7108 eaef11c0d039
parent 7167 0b3b306f129a
child 7188 580cd247511e
equal deleted inserted replaced
7138:f8248bcba8f1 7186:013deb83086b
   211 end;
   211 end;
   212 
   212 
   213 procedure InitTouchInterface;
   213 procedure InitTouchInterface;
   214 begin
   214 begin
   215 {$IFDEF USE_TOUCH_INTERFACE}
   215 {$IFDEF USE_TOUCH_INTERFACE}
       
   216 
   216 //positioning of the buttons
   217 //positioning of the buttons
       
   218 {$IFDEF ANDROID}
       
   219 buttonScale:= Android_JNI_getDensity()/cDefaultZoomLevel;
       
   220 {$ELSE}
   217 buttonScale:= 1.5/cDefaultZoomLevel;
   221 buttonScale:= 1.5/cDefaultZoomLevel;
       
   222 {$ENDIF}
   218 
   223 
   219 
   224 
   220 with JumpWidget do
   225 with JumpWidget do
   221     begin
   226     begin
   222     show:= true;
   227     show:= true;