Search
lxdream.org :: lxdream/src/gui_android.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui_android.c
changeset 1278:2f0de47738d0
prev1277:f727227cc4f8
next1282:9f445c5e252b
author nkeynes
date Wed Mar 21 14:44:14 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Dreamcast.stop() on pause, get rid of unnecessary onAppPause()/onAppResume() methods
Set the run menu item to the right icon/state on pause as well.
file annotate diff log raw
1.1 --- a/src/gui_android.c Wed Mar 21 09:01:41 2012 +1000
1.2 +++ b/src/gui_android.c Wed Mar 21 14:44:14 2012 +1000
1.3 @@ -90,21 +90,6 @@
1.4 return 0;
1.5 }
1.6
1.7 -int android_do_pause(void *data)
1.8 -{
1.9 - if( dreamcast_is_running() ) {
1.10 - dreamcast_stop();
1.11 - }
1.12 - INFO( "Paused" );
1.13 - return 0;
1.14 -}
1.15 -
1.16 -int android_do_resume(void *data)
1.17 -{
1.18 - INFO( "Resumed" );
1.19 - return 0;
1.20 -}
1.21 -
1.22 int android_clear_surface(void *data)
1.23 {
1.24 struct surface_info *surface = (struct surface_info *)data;
1.25 @@ -304,17 +289,6 @@
1.26 tqueue_send_message( android_callback_wrapper, dreamcast_stop );
1.27 }
1.28
1.29 -JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_onAppPause(JNIEnv * env, jclass obj)
1.30 -{
1.31 - /* Need to make sure this completely shuts down before we return */
1.32 - tqueue_send_message( android_do_pause, &current_surface );
1.33 -}
1.34 -
1.35 -JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_onAppResume(JNIEnv * env, jclass obj)
1.36 -{
1.37 - tqueue_post_message( android_do_resume, &current_surface );
1.38 -}
1.39 -
1.40 JNIEXPORT jboolean JNICALL Java_org_lxdream_Dreamcast_isRunning(JNIEnv *env, jclass obj)
1.41 {
1.42 return dreamcast_is_running();
.