From ae7ccdfb929b821796686a55cdaf00c712fd677b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 20 Oct 2016 03:32:13 +0200 Subject: [PATCH] Don't pass param to runloop_iterate_linefeed --- runloop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runloop.c b/runloop.c index 28e424d7a5..1cbb84a6f6 100644 --- a/runloop.c +++ b/runloop.c @@ -1012,7 +1012,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data) #ifdef HAVE_OVERLAY -static void runloop_iterate_linefeed_overlay(settings_t *settings) +static void runloop_iterate_linefeed_overlay(void) { static char prev_overlay_restore = false; bool osk_enable = input_driver_is_onscreen_keyboard_enabled(); @@ -1033,6 +1033,7 @@ static void runloop_iterate_linefeed_overlay(settings_t *settings) } else if (prev_overlay_restore) { + settings_t *settings = config_get_ptr(); if (!settings->input.overlay_hide_in_menu) command_event(CMD_EVENT_OVERLAY_INIT, NULL); prev_overlay_restore = false; @@ -1285,7 +1286,7 @@ int runloop_iterate(event_cmd_state_t *cmd, unsigned *sleep_ms) #endif #ifdef HAVE_OVERLAY - runloop_iterate_linefeed_overlay(settings); + runloop_iterate_linefeed_overlay(); #endif if (runloop_iterate_time_to_exit(