hedgewars/uStore.pas
changeset 5662 99083392cd4f
parent 5660 1647244b3ffe
child 5670 e01f0b6f1969
equal deleted inserted replaced
5660:1647244b3ffe 5662:99083392cd4f
  1000 {$IFDEF IPHONEOS}
  1000 {$IFDEF IPHONEOS}
  1001     // make the sdl window appear on the second monitor when present
  1001     // make the sdl window appear on the second monitor when present
  1002     x:= x or (SDL_GetNumVideoDisplays() - 1);
  1002     x:= x or (SDL_GetNumVideoDisplays() - 1);
  1003     y:= y or (SDL_GetNumVideoDisplays() - 1);
  1003     y:= y or (SDL_GetNumVideoDisplays() - 1);
  1004 
  1004 
  1005     flags:= flags or SDL_WINDOW_BORDERLESS; // do not use SDL_WINDOW_RESIZABLE on ios (yet)
  1005     SDL_SetHint('SDL_IOS_ORIENTATIONS','LandscapeLeft LandscapeRight');
       
  1006     flags:= flags or SDL_WINDOW_BORDERLESS or SDL_WINDOW_RESIZABLE;
  1006 {$ENDIF}
  1007 {$ENDIF}
  1007 
  1008 
  1008     SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cScreenWidth, cScreenHeight, flags);
  1009     SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cScreenWidth, cScreenHeight, flags);
  1009     SDLTry(SDLwindow <> nil, true);
  1010     SDLTry(SDLwindow <> nil, true);
  1010 {$ELSE}
  1011 {$ELSE}