mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 07:37:52 +00:00
platform/android: make host.state actual in Android_UpdateSurface call
This commit is contained in:
parent
f0c9aa1585
commit
e96271a8a9
@ -853,9 +853,9 @@ void Platform_RunEvents( void )
|
|||||||
|
|
||||||
if( events.queue[i].arg )
|
if( events.queue[i].arg )
|
||||||
{
|
{
|
||||||
host.status = HOST_NOFOCUS;
|
|
||||||
SNDDMA_Activate( false );
|
SNDDMA_Activate( false );
|
||||||
Android_UpdateSurface( false );
|
Android_UpdateSurface( false );
|
||||||
|
host.status = HOST_NOFOCUS;
|
||||||
// (*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.toggleEGL, 0 );
|
// (*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.toggleEGL, 0 );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -920,14 +920,14 @@ void Platform_RunEvents( void )
|
|||||||
#endif
|
#endif
|
||||||
// disable sound during call/screen-off
|
// disable sound during call/screen-off
|
||||||
SNDDMA_Activate( false );
|
SNDDMA_Activate( false );
|
||||||
host.status = HOST_NOFOCUS;
|
// host.status = HOST_NOFOCUS;
|
||||||
// stop blocking UI thread
|
// stop blocking UI thread
|
||||||
(*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.notify );
|
(*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.notify );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case event_onresume:
|
case event_onresume:
|
||||||
// re-enable sound after onPause
|
// re-enable sound after onPause
|
||||||
host.status = HOST_FRAME;
|
// host.status = HOST_FRAME;
|
||||||
SNDDMA_Activate( true );
|
SNDDMA_Activate( true );
|
||||||
host.force_draw_version = true;
|
host.force_draw_version = true;
|
||||||
host.force_draw_version_time = host.realtime + FORCE_DRAW_VERSION_TIME;
|
host.force_draw_version_time = host.realtime + FORCE_DRAW_VERSION_TIME;
|
||||||
|
Loading…
Reference in New Issue
Block a user