(Android) Cut down on engine_draw_frame usage

This commit is contained in:
twinaphex 2012-10-15 21:49:17 +02:00
parent ee1194d19a
commit bbbdb1ccc0
2 changed files with 1 additions and 5 deletions

View File

@ -86,10 +86,7 @@ static void engine_handle_cmd(struct android_app* app, int32_t cmd)
case APP_CMD_INIT_WINDOW:
// The window is being shown, get it ready.
if (g_android.app->window != NULL)
{
gfx_ctx_init();
engine_draw_frame();
}
break;
case APP_CMD_TERM_WINDOW:
// The window is being hidden or closed, clean it up.
@ -115,7 +112,6 @@ static void engine_handle_cmd(struct android_app* app, int32_t cmd)
g_android.accelerometerSensor);
// Also stop animating.
g_android.animating = 0;
engine_draw_frame();
break;
}
}

View File

@ -72,7 +72,7 @@ public class phoenix extends Activity
if(requestCode == ACTIVITY_LOAD_ROM)
{
Intent myIntent = new Intent(this, NativeActivity.class);
startActivity(myIntent);
startActivity(myIntent);
/*
rruntime.settings_set_defaults();
rruntime.load_game(data.getStringExtra("PATH"), 0);