You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: 2.0.5 Reported for operating system, platform: iOS (All), iPhone/iPod touch
Comments on the original bug report:
On 2016-12-02 21:39:44 +0000, philhassey wrote:
Created attachment 2644
You can see in this shot how the window is being created in a "portrait" size on a "landscape" screen.
If you create a landscape only app, the following steps will cause the screen size to break. This happens on iPhone 6's with iOS 10.x. It does not seem to impact iPads with iOS 10.x
Create your app using proper start up screens, orientation hints, full screen, resize disabled, border disabled.
Start your app
Hold your phone in landscape orientation
Put your phone into sleep mode
Hold your phone in portrait orientation
Unlock your phone to resume the app
You'll see the app window is re-created incorrectly
I did a lot of digging, and it seems that as of iOS 8 the recommended way to get the window size has changed again. When the app resumes, it makes a call to UIKit_ComputeViewFrame at some point which sometimes gives strange results using the current method. Sometimes the bounds are not what they are expected to be.
I've attached a new version of that function which resolved the issue for me, and I've given it some testing on both a "all orientations" game as well as a "landscape-only" game, on both iPads and an iPhone 6.
I'm not 100% certain if I've correctly handled all of the SDL or iOS specifics in my replacement function, so I'd appreciate any review / help in getting a finalized patch here.
I've also attached a screenshot showing what happens to my game in the above steps.
Thanks!
-Phil
On 2016-12-02 21:40:53 +0000, philhassey wrote:
Created attachment 2645
Patch / replacement for UIKit_ComputeViewFrame in SDL_uikitvideo.m
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 2.0.5
Reported for operating system, platform: iOS (All), iPhone/iPod touch
Comments on the original bug report:
On 2016-12-02 21:39:44 +0000, philhassey wrote:
On 2016-12-02 21:40:53 +0000, philhassey wrote:
On 2017-04-15 14:10:33 +0000, dmuratshin wrote:
On 2017-08-11 20:14:10 +0000, Sam Lantinga wrote:
On 2017-08-19 02:25:07 +0000, Alex Szpakowski wrote:
On 2017-09-29 16:43:25 +0000, philhassey wrote:
The text was updated successfully, but these errors were encountered: