hedgewars/uStore.pas
changeset 4911 5d10bd725efe
parent 4901 d1e2d82d9ccc
child 4920 bc3c077e15a2
--- a/hedgewars/uStore.pas	Wed Feb 02 23:21:14 2011 +0100
+++ b/hedgewars/uStore.pas	Wed Feb 02 23:38:44 2011 +0100
@@ -922,6 +922,11 @@
     end;
 
 {$IFDEF SDL13}
+{$IFDEF IPHONEOS}
+    // ipad can have 2 monitors, display sdl window on the second one
+    SDL_SelectVideoDisplay(SDL_GetNumVideoDisplays() - 1);
+{$ENDIF}
+
     if SDLwindow = nil then
     begin
         SDLwindow:= SDL_CreateWindow('Hedgewars', 0, 0, cScreenWidth, cScreenHeight,