Tested also on latest XCode 6.3 / iPhoneOS8.3.sdk and almost all
worked fine, I only notice :
1/ Indeed, we need to add the SDL_WINDOW_ALLOW_HIGHDPI flag when
creating the window + getting the renderer size by calling
SDL_GetRendererOutputSize.
Just wondering if it wouldn’t be easier if SDL_GetDisplayMode could
give the high dpi mode ?
2/ When testing Landscape mode on a real IPod Touch 4 (ios 6.1.6), I notice :
-
The device is in Portait. the Application draws in Portrait
orientation with a Landscape Shape (a letterbox mode, with black on
top and bottom). Bad.
(and also with wrong touch coordinates)
-
When I rotate the device to landscape, it autorates to Landscape and
lock in landscape. Ok.
I was expecting, as before, that it would automatically rotates to
landscape and lock to landscape.
To be in landscape, my Info.plist contains :
“UIInterfaceOrientation” and “UISupportedOrientation” both set to
"UIInterfaceOrientationLandscapeRight"
The hint “SDL_HINT_ORIENTATIONS” is set to “LandscapeLeft
LandscapeRight” (only “LandscapeLeft” or “LandscapeRight” is not
enough to have landscape )
3/ Probably ok. “SDL_uikview:setSDLWindow()” is always called twice.
(I have a splash screen).
Thanks to Alex and Ryan for this works!On Fri, Apr 10, 2015 at 10:18 AM, Michael Labb? wrote:
This is a large enough change that I feel justified in confirming that
everything worked for me. ~150 kloc iOS codebase. Tested on the XCode 6.3
that shipped recently, no less. Tested on simulator and an iPad Air 2.
Thanks to Alex and Ryan for working on this!
Michael Labb?
@frogtoss
On Apr 9, 2015, at 7:58 PM, Ryan C. Gordon wrote:
…have just landed in revision control. If you have an iOS project, PLEASE
update your copy of SDL if at all possible and let us know if anything has
totally blown up, as this is slated to ship soon in 2.0.4.
A quick list of improvements and fixes Alex made are noted here:
https://hg.libsdl.org/SDL/rev/cf8fab52e33b
If you don’t want to screw around with Mercurial, this link will give you a
zipfile of the complete source code to the latest revision, just download
(about 7 megabytes), unzip, and point XCode at it:
https://hg.libsdl.org/SDL/archive/default.zip
A big thank you to Alex for an enormous amount of work on this!
–ryan.
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
Sylvain Becker