Skip to content

Commit

Permalink
Add return outside if
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPeanuts committed Jan 28, 2020
1 parent 8e96d14 commit 335149a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platform/android/os_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 335149a

Please sign in to comment.