(Android) get rid of window_ready member

This commit is contained in:
twinaphex 2013-01-05 06:24:13 +01:00
parent 1cae4de653
commit 147cb8f0d1
2 changed files with 1 additions and 8 deletions

View File

@ -23,7 +23,6 @@
struct droid
{
struct android_app* app;
bool window_ready;
char current_ime[PATH_MAX];
};

View File

@ -147,10 +147,7 @@ void engine_handle_cmd(struct android_app* android_app, int32_t cmd)
/* The window is being hidden or closed, clean it up. */
/* terminate display/EGL context here */
if (g_extern.lifecycle_state & (1ULL << RARCH_PAUSE_TOGGLE))
{
uninit_drivers();
g_android.window_ready = false;
}
else
RARCH_WARN("Window is terminated outside PAUSED state.\n");
@ -195,9 +192,6 @@ static bool android_run_events(struct android_app* android_app)
{
if (g_extern.lifecycle_state & (1ULL << RARCH_PAUSE_TOGGLE))
init_drivers();
if (android_app->window != NULL)
g_android.window_ready = true;
}
}
@ -341,7 +335,7 @@ static void* android_app_entry(void* param)
g_extern.verbose = true;
while (!g_android.window_ready)
while (!android_app->window)
{
if (!android_run_events(android_app))
goto exit;