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 1381

Summary: SDL_GetDisplayBounds() does not take into account iOS device orientation
Product: SDL Reporter: Vern Jensen <vern>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: iOS 4   

Description Vern Jensen 2012-01-19 14:05:58 UTC
SDL_GetDisplayBounds() returns the same results regardless of what "orientation" the iOS device is currently in. For iPad, it returns 768x1024 regardless of whether the device is currently in portrait or landscape.

Not sure if you agree with this, but it'd seem to make sense for it to return the dimensions appropriate for the current orientation. For now, I'm going to work around this in my code to get my program to handle orientation changes correctly.
Comment 1 Sam Lantinga 2012-01-19 17:58:53 UTC
Hey Ryan, can you look at this when you dig into the retina display support?
Comment 2 Vern Jensen 2012-01-19 19:30:58 UTC
Addtionally, it does not return the proper size on a Retina display. (It still returns 480x320, instead of 960x640.)

(Again, by contrast, SDL_GetDisplayMode DOES return the proper size for retina display. So my workaround will be calling *this* and returning the appropriate value depending on current orientation.)