This commit is contained in:
twinaphex 2015-08-22 01:43:13 +02:00
parent 4ae1e9a53d
commit a9418050a8

View File

@ -342,16 +342,6 @@ bool menu_driver_alive(void)
return menu_alive;
}
static void menu_driver_set_alive(void)
{
menu_alive = true;
}
static void menu_driver_unset_alive(void)
{
menu_alive = false;
}
void menu_driver_toggle(bool latch)
{
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
@ -359,10 +349,7 @@ void menu_driver_toggle(bool latch)
if (driver->toggle)
driver->toggle(latch);
if (latch)
menu_driver_set_alive();
else
menu_driver_unset_alive();
menu_alive = latch;
}
bool menu_driver_load_image(void *data, menu_image_type_t type)