We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 231cd11 commit bb03741Copy full SHA for bb03741
BaseBin/libjailbreak/src/display.m
@@ -217,8 +217,15 @@ CGFloat get_main_screen_rotation(void)
217
else { // iPads that DO have a lanscape base orientation...
218
CFNumberRef displayBootRotationNum = MGCopyAnswer(CFSTR("DisplayBootRotation"));
219
unsigned long long displayBootRotation = [(__bridge NSNumber *)displayBootRotationNum unsignedLongLongValue];
220
- if (displayBootRotation == 180) {
221
- return 180; // ...only need a fix for upside down?????
+ switch (displayBootRotation) {
+ case 0:
222
+ return 90;
223
+ case 90:
224
+ return 0;
225
+ case 180:
226
+ return 270;
227
+ case 270:
228
+ return 180;
229
}
230
231
0 commit comments