mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 22:14:30 +00:00
(Android) Remove unnecessary animating conditional block in gfx_ctx_check_window
This commit is contained in:
parent
1ff6175bd2
commit
b204b55386
@ -370,8 +370,6 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
|
||||
|
||||
static void *android_input_init(void)
|
||||
{
|
||||
void *libandroid = 0;
|
||||
|
||||
g_android.app->onInputEvent = engine_handle_input;
|
||||
pads_connected = 0;
|
||||
|
||||
|
@ -141,22 +141,12 @@ static void gfx_ctx_check_window(bool *quit,
|
||||
(void)height;
|
||||
(void)frame_count;
|
||||
|
||||
gl_t *gl = driver.video_data;
|
||||
*quit = false;
|
||||
*resize = false;
|
||||
|
||||
// Check if we are exiting.
|
||||
if (g_android.app->destroyRequested != 0 || g_android.init_quit)
|
||||
*quit = true;
|
||||
|
||||
if (g_android.animating)
|
||||
{
|
||||
// Done with events; draw next animation frame.
|
||||
g_android.state.angle += .01f;
|
||||
|
||||
if (g_android.state.angle > 1)
|
||||
g_android.state.angle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void gfx_ctx_clear(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user