| Summary: | Touch Events Invalid in Landscape Mode | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Armin Ronacher <armin.ronacher> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | vitto.giova |
| Version: | HG 2.0 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS (All) | ||
| Attachments: |
alternative possible patch?
updated patch |
||
|
Description
Armin Ronacher
2011-05-08 00:59:25 UTC
Created attachment 680 [details]
alternative possible patch?
What about this solution?
This keeps the uiwindow frame constant notwithstanding the current rotation position.
actually my alternative doesn't take into account which screen we are running on; so a better fix would be [[uiscreen] bounds] (In reply to comment #2) > actually my alternative doesn't take into account which screen we are running > on; so a better fix would be [[uiscreen] bounds] typo. - [uiwindow setFrame:frame]; + [uiwindow setFrame:[uiscreen bounds]]; Created attachment 724 [details]
updated patch
this should have been fixed by Sam in d7135957b216 |