(Menu) Fix core option ON/OFF buttons

This commit is contained in:
Jean-André Santoni 2017-02-21 19:54:02 +01:00
parent 63eafbcac2
commit 1cccfa09fb
2 changed files with 0 additions and 30 deletions

View File

@ -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;

View File

@ -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;