Skip to content

Commit 1ee48c5

Browse files
committed
Merge pull request #109478 from TCROC/fix-ios-auto-orientation
Fix screen_orientation not being assigned on ios
2 parents 7791eed + d4b7222 commit 1ee48c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/apple_embedded/display_server_apple_embedded.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@
662662
int screen_count = get_screen_count();
663663
ERR_FAIL_INDEX(p_screen, screen_count);
664664

665+
screen_orientation = p_orientation;
665666
if (@available(iOS 16.0, *)) {
666667
[GDTAppDelegateService.viewController setNeedsUpdateOfSupportedInterfaceOrientations];
667668
}

0 commit comments

Comments
 (0)