From 335149a355dc6518220417f9b68d96e9d70611fe Mon Sep 17 00:00:00 2001 From: gmamani Date: Tue, 28 Jan 2020 10:18:26 -0300 Subject: [PATCH] Add return outside if --- platform/android/os_android.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index d9db09bae862..37475211f6c1 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -524,9 +524,16 @@ int OS_Android::get_virtual_keyboard_height() const { } Rect2 OS_Android::get_window_inset() const { + Size2 window_size = get_window_size(); + if (get_window_inset_func) { return get_window_inset_func(); } + + return Rect2( + 0, 0, + window_size.width, + window_size.height); }