1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-03 10:21:31 +00:00

(materialui.c) Cleanup

This commit is contained in:
twinaphex 2016-12-15 11:24:05 +01:00
parent 2eca6aa04d
commit aee432a528

@ -674,7 +674,8 @@ static void mui_render_label_value(mui_handle_t *mui,
case FILE_TYPE_MOVIE: case FILE_TYPE_MOVIE:
break; break;
case FILE_TYPE_BOOL_ON: case FILE_TYPE_BOOL_ON:
if (mui->textures.list[MUI_TEXTURE_SWITCH_ON]) { if (mui->textures.list[MUI_TEXTURE_SWITCH_ON])
{
texture_switch = mui->textures.list[MUI_TEXTURE_SWITCH_ON]; texture_switch = mui->textures.list[MUI_TEXTURE_SWITCH_ON];
switch_is_on = true; switch_is_on = true;
} }
@ -682,7 +683,8 @@ static void mui_render_label_value(mui_handle_t *mui,
do_draw_text = true; do_draw_text = true;
break; break;
case FILE_TYPE_BOOL_OFF: case FILE_TYPE_BOOL_OFF:
if (mui->textures.list[MUI_TEXTURE_SWITCH_OFF]) { if (mui->textures.list[MUI_TEXTURE_SWITCH_OFF])
{
texture_switch = mui->textures.list[MUI_TEXTURE_SWITCH_OFF]; texture_switch = mui->textures.list[MUI_TEXTURE_SWITCH_OFF];
switch_is_on = false; switch_is_on = false;
} }