godot/drivers
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
..
alsa SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
alsamidi SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
backtrace SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
coreaudio Merge pull request #88628 from bruvzg/i_have_no_idea_what_im_doing 2024-10-29 19:25:47 -05:00
coremidi SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
d3d12 Merge pull request #97934 from adamscott/give-AThousandShips-a-break 2024-10-29 19:25:36 -05:00
egl Merge pull request #97771 from dsnopek/openxr-linux-egl 2024-10-25 13:04:08 -05:00
gl_context SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
gles3 Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
metal Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
png SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
pulseaudio Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
unix [Linux/BSD] Fix cross-device rename. 2024-10-02 08:57:37 +03:00
vulkan Fix splash screen upside down on Android 2024-10-31 16:52:26 -03:00
wasapi Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
windows Merge pull request #95678 from Hilderin/fix-slow-load-on-large-project-v2 2024-09-26 12:45:31 +02:00
winmidi SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
xaudio2 Merge pull request #97483 from akien-mga/clang-format-19.1.0 2024-09-26 12:46:04 +02:00
register_driver_types.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_driver_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub [macOS/iOS] Use hardware sampling rates for audio I/O. 2024-10-25 19:26:24 +03:00