hedgewars/uStore.pas
changeset 6624 e049b5bb0ad1
parent 6614 f88f67a17a9d
child 6639 2b29832557c2
--- a/hedgewars/uStore.pas	Sat Feb 04 23:06:22 2012 +0100
+++ b/hedgewars/uStore.pas	Sun Feb 05 15:52:26 2012 +0100
@@ -1055,18 +1055,14 @@
     // these values in x and y make the window appear in the center
     x:= SDL_WINDOWPOS_CENTERED_MASK;
     y:= SDL_WINDOWPOS_CENTERED_MASK;
-    flags:= SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN;
+    // SDL_WINDOW_RESIZABLE makes the window respond to rotation events on mobile devices
+    flags:= SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN or SDL_WINDOW_RESIZABLE;
 
     {$IFDEF MOBILE}
-    // make the sdl window appear on the second monitor when present
-    x:= x or (SDL_GetNumVideoDisplays() - 1);
-    y:= y or (SDL_GetNumVideoDisplays() - 1);
-
     if isPhone() then
         SDL_SetHint('SDL_IOS_ORIENTATIONS','LandscapeLeft LandscapeRight');
-
-    // on mobile the SDL_WINDOW_RESIZABLE makes the window respond to rotation events
-    flags:= flags or SDL_WINDOW_BORDERLESS or SDL_WINDOW_RESIZABLE;
+    // no need for borders on mobile devices
+    flags:= flags or SDL_WINDOW_BORDERLESS;
     {$ENDIF}
 
     if SDLwindow = nil then