From 1cccfa09fb2d6555963ea626f1e069fd92e9fc42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Tue, 21 Feb 2017 19:54:02 +0100 Subject: [PATCH] (Menu) Fix core option ON/OFF buttons --- menu/drivers/materialui.c | 18 ------------------ menu/drivers/xmb.c | 12 ------------ 2 files changed, 30 deletions(-) diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 88478b55b0..8707e5095c 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -755,24 +755,6 @@ static void mui_render_label_value(mui_handle_t *mui, mui_node_t *node, case FILE_TYPE_IMAGE: case FILE_TYPE_MOVIE: break; - case FILE_TYPE_BOOL_ON: - if (mui->textures.list[MUI_TEXTURE_SWITCH_ON]) - { - texture_switch = mui->textures.list[MUI_TEXTURE_SWITCH_ON]; - switch_is_on = true; - } - else - do_draw_text = true; - break; - case FILE_TYPE_BOOL_OFF: - if (mui->textures.list[MUI_TEXTURE_SWITCH_OFF]) - { - texture_switch = mui->textures.list[MUI_TEXTURE_SWITCH_OFF]; - switch_is_on = false; - } - else - do_draw_text = true; - break; default: do_draw_text = true; break; diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index c4c01c986b..f0edf4ec52 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2203,18 +2203,6 @@ static void xmb_draw_items( case FILE_TYPE_IMAGE: case FILE_TYPE_MOVIE: break; - case FILE_TYPE_BOOL_ON: - if (xmb->textures.list[XMB_TEXTURE_SWITCH_ON]) - texture_switch = xmb->textures.list[XMB_TEXTURE_SWITCH_ON]; - else - do_draw_text = true; - break; - case FILE_TYPE_BOOL_OFF: - if (xmb->textures.list[XMB_TEXTURE_SWITCH_OFF]) - texture_switch = xmb->textures.list[XMB_TEXTURE_SWITCH_OFF]; - else - do_draw_text = true; - break; default: do_draw_text = true; break;