Commit 4a952ad
committed
fix(android): force landscape from launch
WackiActivity was already sensorLandscape, but SetupActivity (the
launcher) had no orientation, so the app opened in the system orientation
(often portrait) before the game flipped to landscape. Force
sensorLandscape on SetupActivity too, and set SDL_HINT_ORIENTATIONS to
landscape-only in the Android early-init so SDL's runtime orientation pick
can't request portrait. The app is now landscape from the first frame.1 parent 1e49cf7 commit 4a952ad
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments