We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2248

Summary: Landscape mode in Ios Device
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amaranth72
Version: HG 2.1   
Hardware: iPhone/iPod touch   
OS: iOS (All)   
Attachments: screen shot (ipad?) from Apple

Description Sylvain 2013-11-18 07:35:15 UTC
Created attachment 1450 [details]
screen shot (ipad?) from Apple

Maybe duplicate of https://bugzilla.libsdl.org/show_bug.cgi?id=2247

Most of the times, it works correctly.

Sometimes, the application starts in portrait whereas it expects to be in landscape.

see screenshot (reported by Apple). but it appeared also once with an iPod4 touch.

My app always draw the same. but to get this "picture" (See attached file), 
it means it expects to draw to a renderer with : width=2048 x height=1536
but, the renderer size is width=1536 x height=2048.

So : there are missing card columns, there expand outside the right of screen.
In the middle, close to "00 : 00 : 00" there are the 5 card, that I usally draw half outside of the screen. but we saw them !)


Look also the background, it is correctly drawn (not outside, the light is in the middle) because I use "rect_src" and "rect_dst" as NULL in the SDL_RenderCopy function.

I use the latest. IOS7 SDK. but I already saw this before a few times.
Comment 1 Alex Szpakowski 2016-03-19 12:04:45 UTC
There have been a ton of orientation and rotation-related fixes for SDL on iOS in the past couple years. I believe this issue doesn't happen anymore, if I'm wrong then definitely reopen the bug report :)
Comment 2 Sylvain 2016-03-19 12:11:42 UTC
Yes, it seems obsolete. I haven't heard any issue from apple since I reported it. Thanks for closing it!