Skip to content

Commit

Permalink
[Vulkan, Android] Support screen-rotation a little more reliably
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 1, 2022
1 parent 708b9aa commit 7d1341c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backends/System/Android/Sources/kinc/backend/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,8 @@ bool kinc_internal_handle_messages(void) {

if (activityJustResized && app->window != NULL) {
activityJustResized = false;
int32_t width = ANativeWindow_getWidth(app->window);
int32_t height = ANativeWindow_getHeight(app->window);
int32_t width = glWidth();
int32_t height = glHeight();
#ifdef KORE_VULKAN
kinc_internal_resize(0, width, height);
#endif
Expand Down

0 comments on commit 7d1341c

Please sign in to comment.