| Summary: | [patch] Screen size incorrect when changing orientations and resuming | ||
|---|---|---|---|
| Product: | SDL | Reporter: | philhassey <phil> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus, phil, sylvain.becker |
| Version: | 2.0.3 | Keywords: | triage-2.0.4 |
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS (All) | ||
| Attachments: | patch for this bug | ||
|
Description
philhassey
2014-07-24 16:49:30 UTC
Just wondering could this be same as this bug I got from Apple a while ago: https://bugzilla.libsdl.org/show_bug.cgi?id=2248 (if so, mark mine as duplicate as I there is not method to reproduce it). I tracked down the bug and have created a patch. The function "SDL_SetWindowSize" was not being called during viewDidLayoutSubviews, so when the app was restored, SDL send out an incorrect SDL_WINDOWEVENT_RESIZED in SDL_UpdateFullscreenMode. This one line patch corrects this bug. -Phil Created attachment 1799 [details]
patch for this bug
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though! |