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 3337 - iOS Resolution incorrect
Summary: iOS Resolution incorrect
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.4
Hardware: iPhone/iPod touch Other
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-19 06:09 UTC by Kai
Modified: 2016-09-25 03:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai 2016-05-19 06:09:09 UTC
I'm testing on iPhone 6 with iOS 9.3.

I run demos(eg. Rectangles) from SDL2's Xcode-iOS folder. The resolution the demos pick is wrong, 480x320, instead of 1334x750.

Thus, they show smaller window at the center of the screen without any retina support.
Comment 1 Alex Szpakowski 2016-05-19 16:27:27 UTC
That old demo code has a hard-coded resolution I believe, your own code won't have that issue.

That said, make sure to read the README-ios.md file, particularly the part about Retina resolutions on iOS.
Comment 2 Alex Szpakowski 2016-09-25 03:24:18 UTC
The demos have been updated so they don't have hard-coded resolutions anymore.