- Fix for iPhone 4S screen size ios-revival
authorantonc27 <antonc27@mail.ru>
Tue, 18 Aug 2015 00:51:23 +0200
branchios-revival
changeset 11136 9b5f60bc059e
parent 11135 b34c0e2b546a
child 11137 14f50dde3e8c
- Fix for iPhone 4S screen size
hedgewars/uVariables.pas
--- a/hedgewars/uVariables.pas	Sun Aug 16 02:32:03 2015 +0200
+++ b/hedgewars/uVariables.pas	Tue Aug 18 00:51:23 2015 +0200
@@ -2672,8 +2672,13 @@
     vobSDVelocity:= 15;
     vobSDFallSpeed:= 250;
 
+{$IFDEF MOBILE}
+    cMinScreenWidth  := min(cScreenWidth, 480);
+    cMinScreenHeight := min(cScreenHeight, 320);
+{$ELSE}
     cMinScreenWidth  := min(cScreenWidth, 640);
     cMinScreenHeight := min(cScreenHeight, 480);
+{$ENDIF}
 
     cNewScreenWidth    := cScreenWidth;
     cNewScreenHeight   := cScreenHeight;