From e96271a8a9a89731bc52c9c13b09c50639ddc6da Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 12 Jul 2020 05:16:08 +0700 Subject: [PATCH] platform/android: make host.state actual in Android_UpdateSurface call --- engine/platform/android/android.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/platform/android/android.c b/engine/platform/android/android.c index 56fd6faa..45cd40fb 100644 --- a/engine/platform/android/android.c +++ b/engine/platform/android/android.c @@ -853,9 +853,9 @@ void Platform_RunEvents( void ) if( events.queue[i].arg ) { - host.status = HOST_NOFOCUS; SNDDMA_Activate( false ); Android_UpdateSurface( false ); + host.status = HOST_NOFOCUS; // (*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.toggleEGL, 0 ); } break; @@ -920,14 +920,14 @@ void Platform_RunEvents( void ) #endif // disable sound during call/screen-off SNDDMA_Activate( false ); - host.status = HOST_NOFOCUS; +// host.status = HOST_NOFOCUS; // stop blocking UI thread (*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.notify ); break; case event_onresume: // re-enable sound after onPause - host.status = HOST_FRAME; +// host.status = HOST_FRAME; SNDDMA_Activate( true ); host.force_draw_version = true; host.force_draw_version_time = host.realtime + FORCE_DRAW_VERSION_TIME;