Skip to content

Commit d68ec09

Browse files
committed
Fi UI scaling on Android
Was always using smallest scaling factor due to wrong code ordering
1 parent 1fd4564 commit d68ec09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/Entrypoints.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Platform specific macros for the example main entry points
55
*
6-
* Copyright (C) 2024 by Sascha Willems - www.saschawillems.de
6+
* Copyright (C) 2024-2025 by Sascha Willems - www.saschawillems.de
77
*
88
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
99
*/
@@ -42,12 +42,12 @@ int APIENTRY WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
4242
VulkanExample *vulkanExample; \
4343
void android_main(android_app* state) \
4444
{ \
45+
androidApp = state; \
46+
vks::android::getDeviceConfig(); \
4547
vulkanExample = new VulkanExample(); \
4648
state->userData = vulkanExample; \
4749
state->onAppCmd = VulkanExample::handleAppCommand; \
4850
state->onInputEvent = VulkanExample::handleAppInput; \
49-
androidApp = state; \
50-
vks::android::getDeviceConfig(); \
5151
vulkanExample->renderLoop(); \
5252
delete(vulkanExample); \
5353
}

0 commit comments

Comments
 (0)