godot/platform/android/java
Matias N. Goldberg b9a2f108fc Fix splash screen upside down on Android
Fixes an issue introduced in #96439 (see
https://github.com/godotengine/godot/pull/96439#issuecomment-2447288702)

Godot was relying on Java's
activity.getWindowManager().getDefaultDisplay().getRotation(); to apply
pre-rotation but this is wrong.

First, getRotation() may temporarily return a different value from the
correct one; which is what was causing the splash screen to be upside
down. It would return -90 instead of 90 for the first rendered frame.

But unfortunately, the splash screen is just one frame rendered for a
very long time, so the error lingered for a long time for everyone to
see.

Second, to determine what rotation to use, we should be looking at what
Vulkan told us, which is the value we pass to
VkSurfaceTransformFlagBitsKHR::preTransform.

This commit removes the now-unnecessary
screen_get_internal_current_rotation() function (which was introduced by
#96439) and now saves the preTransform value in the swapchain.
2024-10-31 16:52:26 -03:00
..
app Add logic to automatically pick up jar/aar library dependencies in the res://addons directory 2024-09-29 14:32:10 -07:00
editor Update the set of excluded permissions for the XR Editor 2024-09-25 23:22:16 -07:00
gradle/wrapper
lib Fix splash screen upside down on Android 2024-10-31 16:52:26 -03:00
nativeSrcsConfigs Improve support for XR projects 2024-09-06 00:35:50 -07:00
scripts Style: Trim trailing whitespace and ensure newline at EOF 2024-05-08 10:12:46 +02:00
build.gradle C#: Fallback to CoreCLR/MonoVM hosting APIs when hostfxr/NativeAOT fails 2024-09-16 17:07:03 +02:00
gradle.properties
gradlew
gradlew.bat
settings.gradle Improve support for XR projects 2024-09-06 00:35:50 -07:00
THIRDPARTY.md Update the GodotHost interface to support signing and verifying Android apks 2024-08-26 11:16:38 -07:00