revision 1277:f727227cc4f8
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1277:f727227cc4f8 |
parent | 1276:e20a69167093 |
child | 1278:2f0de47738d0 |
author | nkeynes |
date | Wed Mar 21 09:01:41 2012 +1000 (10 years ago) |
Surface management is actually already being taken care of - don't try to
duplicate in onPause/onResume
duplicate in onPause/onResume
![]() | src/gui_android.c | view | annotate | diff | log |
1.1 --- a/src/gui_android.c Tue Mar 20 17:54:58 2012 +10001.2 +++ b/src/gui_android.c Wed Mar 21 09:01:41 2012 +10001.3 @@ -86,6 +86,7 @@1.4 {1.5 struct surface_info *surface = (struct surface_info *)data;1.6 video_egl_set_window(surface->win, surface->width, surface->height, surface->format);1.7 + INFO( "set_surface" );1.8 return 0;1.9 }1.11 @@ -94,16 +95,12 @@1.12 if( dreamcast_is_running() ) {1.13 dreamcast_stop();1.14 }1.15 - video_egl_clear_window();1.16 INFO( "Paused" );1.17 return 0;1.18 }1.20 int android_do_resume(void *data)1.21 {1.22 - struct surface_info *surface = (struct surface_info *)data;1.23 - if( surface->win != NULL )1.24 - video_egl_set_window(surface->win, surface->width, surface->height, surface->format);1.25 INFO( "Resumed" );1.26 return 0;1.27 }1.28 @@ -112,9 +109,13 @@1.29 {1.30 struct surface_info *surface = (struct surface_info *)data;1.32 - android_do_pause(data); /* If we haven't already stopped, stop now */1.33 + if( dreamcast_is_running() ) {1.34 + dreamcast_stop(); /* Should already be stopped, but just in case */1.35 + }1.36 + video_egl_clear_window();1.37 ANativeWindow_release(surface->win);1.38 surface->win = NULL;1.39 + INFO( "clear_surface" );1.40 return 0;1.41 }
.