Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions osu.Android/Native/vulkan_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

static JavaVM* g_vm = nullptr;

jint JNI_OnLoad(JavaVM* vm, void* reserved) {
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
g_vm = vm;
LOGI("JNI_OnLoad called, JVM initialized");
return JNI_VERSION_1_6;
}

Expand Down Expand Up @@ -358,9 +359,8 @@ VkExtent2D VulkanRenderer::chooseSwapExtent(const VkSurfaceCapabilitiesKHR& capa
if (capabilities.currentExtent.width != UINT32_MAX) {
return capabilities.currentExtent;
} else {
int width, height;
ANativeWindow_getWidth(window);
ANativeWindow_getHeight(window);
int width = ANativeWindow_getWidth(window);
int height = ANativeWindow_getHeight(window);

VkExtent2D actualExtent = {
static_cast<uint32_t>(width),
Expand Down