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 1904 - SDL does not support native resolution of the iPhone 5
Summary: SDL does not support native resolution of the iPhone 5
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: iPhone/iPod touch iOS 6
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 16:07 UTC by Wouter van Oortmerssen
Modified: 2013-06-10 17:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wouter van Oortmerssen 2013-06-07 16:07:19 UTC
When I iterate through the display modes with SDL_GetDisplayMode, I get these options when running on the iPhone 5 hardware:

mode: 960 640
mode: 640 960
mode: 480 320
mode: 320 480

Even if I stubbornly pass the correct resolution of (1136, 640) to SDL_CreateWindow, SDL denies me that, and gives me 960 640 instead. The game appears letterboxed.
Comment 1 Wouter van Oortmerssen 2013-06-10 17:01:55 UTC
apparently, the modes that availableModes will return depends on... whether you have specified a iphone-5 sized launch image (!)

http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution

Wow Apple, that is some impressively messy / unintuitive design.

So I guess this too is not a bug. Hopefully useful to someone else who wonders why they're not getting the correct resolution.