Commit Graph

10 Commits

Author SHA1 Message Date
Alex Szpakowski
362899776e Minor code update for less verbosity 2014-08-06 00:45:11 -03:00
Alex Szpakowski
31257842ec Added support for SDL_SetWindowBordered on iOS. Worked around a bug with rotating the device on iOS 8. 2014-07-29 00:05:48 -03:00
Alex Szpakowski
6d552cae38 90% of iOS users on the App Store run at least iOS 7, so it doesn't make sense to support building using an SDK that doesn't support iOS 7. The minimum supported runtime version is still iOS 5.1. 2014-07-23 01:33:59 -03:00
Alex Szpakowski
967549c9ad Updated the iOS Objective-C code to use NSDictionary/NSArray/NSNumber literals and subscripting, for improved code clarity.
This requires at least Xcode 4.5 and the iOS 6 SDK to build, but it doesn't change the minimum supported runtime version (iOS 5.1). Less than 2% of iOS users are running iOS 5, so I hope developers aren't trying to build SDL using an SDK which doesn't support iOS 6/7...
2014-07-23 01:28:24 -03:00
Alex Szpakowski
e234575d54 Disabled the custom iOS splashscreen code - it interferes with the normal rotation and orientation behaviour of SDL windows. 2014-07-17 22:55:59 -03:00
Alex Szpakowski
d2e445d7bb Properly send a window resize event in all cases when viewDidLayoutSubviews is triggered. 2014-07-17 18:05:12 -03:00
Alex Szpakowski
b55be6e7bd Fixed SDL_HINT_ORIENTATIONS to properly allow disabling custom orientations if the hint is set with no valid orientations. 2014-07-16 21:06:15 -03:00
Alex Szpakowski
b21544c1dd The iOS 7 transparent status bar now uses white text rather than black. 2014-07-16 20:05:00 -03:00
Alex Szpakowski
3672409c51 Changed the way retina resolutions are handled in iOS.
Previously, SDL would always expose display modes and window dimensions in terms of pixels, and would add an extra 'fake' display mode on retina screens which would contain the non-retina resolution. Calling SDL_CreateWindow with the dimensions of that fake display mode would not work.

Now, SDL only exposes display modes and window dimensions in terms of points rather than pixels. If the SDL_WINDOW_ALLOW_HIGHDPI flag is passed into SDL_CreateWindow, then any OpenGL contexts created from that window will be sized in pixels rather than points (retrievable with SDL_GL_GetDrawableSize.) Window dimensions and mouse coordinates are still in terms of points rather than pixels even with that flag.

This matches the behavior of SDL in OS X more closely, and lets users choose whether to make use of retina displays and lets them handle it properly.
2014-07-14 22:35:48 -03:00
David Ludwig
3dcb451f85 Added a README file regarding WinRT support
To note, this file is currently formatted with CRLF line endings, rather than
LF, to allow the file to be viewed with Notepad.
2014-04-09 21:29:19 -04:00