equal
deleted
inserted
replaced
1004 |
1004 |
1005 SDL_SetHint('SDL_IOS_ORIENTATIONS','LandscapeLeft LandscapeRight'); |
1005 SDL_SetHint('SDL_IOS_ORIENTATIONS','LandscapeLeft LandscapeRight'); |
1006 flags:= flags or SDL_WINDOW_BORDERLESS or SDL_WINDOW_RESIZABLE; |
1006 flags:= flags or SDL_WINDOW_BORDERLESS or SDL_WINDOW_RESIZABLE; |
1007 {$ENDIF} |
1007 {$ENDIF} |
1008 |
1008 |
1009 if cFullScreen then SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cOrigScreenWidth, cOrigScreenHeight, flags); |
1009 if cFullScreen then SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cOrigScreenWidth, cOrigScreenHeight, flags or SDL_WINDOW_FULLSCREEN) |
1010 else SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cScreenWidth, cScreenHeight, flags); |
1010 else SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cScreenWidth, cScreenHeight, flags); |
1011 SDLTry(SDLwindow <> nil, true); |
1011 SDLTry(SDLwindow <> nil, true); |
1012 {$ELSE} |
1012 {$ELSE} |
1013 flags:= SDL_OPENGL or SDL_RESIZABLE; |
1013 flags:= SDL_OPENGL or SDL_RESIZABLE; |
1014 if cFullScreen then |
1014 if cFullScreen then |