mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
iOS: Refactor platform code
Change project structure to be more like 4.0 Refactor and remove old code as followup after deprecations fix
This commit is contained in:
@@ -158,7 +158,14 @@
|
||||
} else if (dataCbCr == NULL) {
|
||||
print_line("Couldn't access CbCr pixel buffer data");
|
||||
} else {
|
||||
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
|
||||
UIInterfaceOrientation orientation = UIInterfaceOrientationUnknown;
|
||||
|
||||
if (@available(iOS 13, *)) {
|
||||
orientation = [UIApplication sharedApplication].delegate.window.windowScene.interfaceOrientation;
|
||||
} else {
|
||||
orientation = [[UIApplication sharedApplication] statusBarOrientation];
|
||||
}
|
||||
|
||||
Ref<Image> img[2];
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user