Remove input_overlay_init

This commit is contained in:
twinaphex 2016-05-25 00:57:58 +02:00
parent ae0da06d8f
commit cd176d0737
3 changed files with 5 additions and 10 deletions

View File

@ -1864,7 +1864,8 @@ bool command_event(enum event_command cmd, void *data)
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
#ifdef HAVE_OVERLAY
input_overlay_free();
input_overlay_init();
if (settings->input.overlay_enable)
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
#endif
break;
case CMD_EVENT_OVERLAY_NEXT:

View File

@ -499,7 +499,7 @@ void input_overlay_free(void)
}
/* task_data = overlay_task_data_t* */
static void input_overlay_loaded(void *task_data, void *user_data, const char *err)
void input_overlay_loaded(void *task_data, void *user_data, const char *err)
{
size_t i;
overlay_task_data_t *data = (overlay_task_data_t*)task_data;
@ -559,14 +559,6 @@ abort_load:
free(data);
}
void input_overlay_init(void)
{
settings_t *settings = config_get_ptr();
if (!settings->input.overlay_enable)
return;
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
}
/**
* input_overlay_set_alpha_mod:
* @ol : Overlay handle.

View File

@ -241,6 +241,8 @@ bool input_overlay_key_pressed(int key);
bool input_overlay_is_alive(input_overlay_t *ol);
void input_overlay_loaded(void *task_data, void *user_data, const char *err);
#ifdef __cplusplus
}
#endif