Browse Source

fixed screen_orientation not being assigned on ios

Travis Lange 1 month ago
parent
commit
d4b7222ca0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/apple_embedded/display_server_apple_embedded.mm

+ 1 - 0
drivers/apple_embedded/display_server_apple_embedded.mm

@@ -662,6 +662,7 @@ void DisplayServerAppleEmbedded::screen_set_orientation(DisplayServer::ScreenOri
 	int screen_count = get_screen_count();
 	ERR_FAIL_INDEX(p_screen, screen_count);
 
+	screen_orientation = p_orientation;
 	if (@available(iOS 16.0, *)) {
 		[GDTAppDelegateService.viewController setNeedsUpdateOfSupportedInterfaceOrientations];
 	}