1.1 --- a/src/gui_android.c Wed Mar 21 14:44:14 2012 +1000
1.2 +++ b/src/gui_android.c Wed Jul 04 12:01:31 2012 +1000
1.4 #include "drivers/video_egl.h"
1.5 #include "maple/maple.h"
1.6 #include "vmu/vmulist.h"
1.7 +#include "pvr2/pvr2.h"
1.9 struct surface_info {
1.13 struct surface_info *surface = (struct surface_info *)data;
1.14 video_egl_set_window(surface->win, surface->width, surface->height, surface->format);
1.15 + pvr2_restore_render_buffers();
1.16 + pvr2_draw_frame();
1.17 INFO( "set_surface" );
1.21 if( dreamcast_is_running() ) {
1.22 dreamcast_stop(); /* Should already be stopped, but just in case */
1.24 + pvr2_preserve_render_buffers();
1.25 video_egl_clear_window();
1.26 ANativeWindow_release(surface->win);
1.27 surface->win = NULL;
1.30 pthread_attr_init(&attr);
1.31 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
1.32 + pthread_attr_setstacksize(&attr,2048*1024);
1.33 int status = pthread_create(&dreamcast_thread, &attr, android_thread_main, NULL);