mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
(Android) Refactor check_window - store AConfiguration_getOrientation
return value in local variable and reuse this value from there
This commit is contained in:
parent
f81ee3be30
commit
aab0ed8fce
@ -207,13 +207,15 @@ static void gfx_ctx_check_window(bool *quit,
|
||||
*quit = false;
|
||||
*resize = false;
|
||||
|
||||
if (AConfiguration_getOrientation(g_android.app->config) != g_android.last_orient || g_android.reinit_video)
|
||||
int32_t new_orient = AConfiguration_getOrientation(g_android.app->config);
|
||||
|
||||
if (new_orient != g_android.last_orient || g_android.reinit_video)
|
||||
{
|
||||
*resize = true;
|
||||
g_android.last_orient = new_orient;
|
||||
// reinit video driver for new window dimensions
|
||||
driver.video->free(driver.video_data);
|
||||
init_video_input();
|
||||
g_android.last_orient = AConfiguration_getOrientation(g_android.app->config);
|
||||
g_android.reinit_video = 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user