Fi UI scaling on Android

Was always using smallest scaling factor due to wrong code ordering
This commit is contained in:
Sascha Willems 2025-03-01 17:27:24 +01:00
parent 1fd45647d7
commit d68ec09f22

View file

@ -3,7 +3,7 @@
* *
* Platform specific macros for the example main entry points * Platform specific macros for the example main entry points
* *
* Copyright (C) 2024 by Sascha Willems - www.saschawillems.de * Copyright (C) 2024-2025 by Sascha Willems - www.saschawillems.de
* *
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/ */
@ -42,12 +42,12 @@ int APIENTRY WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
VulkanExample *vulkanExample; \ VulkanExample *vulkanExample; \
void android_main(android_app* state) \ void android_main(android_app* state) \
{ \ { \
androidApp = state; \
vks::android::getDeviceConfig(); \
vulkanExample = new VulkanExample(); \ vulkanExample = new VulkanExample(); \
state->userData = vulkanExample; \ state->userData = vulkanExample; \
state->onAppCmd = VulkanExample::handleAppCommand; \ state->onAppCmd = VulkanExample::handleAppCommand; \
state->onInputEvent = VulkanExample::handleAppInput; \ state->onInputEvent = VulkanExample::handleAppInput; \
androidApp = state; \
vks::android::getDeviceConfig(); \
vulkanExample->renderLoop(); \ vulkanExample->renderLoop(); \
delete(vulkanExample); \ delete(vulkanExample); \
} }