Merge pull request #7554 from alfrix/check

Do not draw icons in the dropdown (only the checkmark)
This commit is contained in:
Twinaphex 2018-11-07 17:12:49 +01:00 committed by GitHub
commit 59fdd8eabd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -2914,7 +2914,14 @@ static int xmb_draw_item(
menu_display_rotate_z(&rotate_draw, video_info);
xmb_draw_icon(video_info,
if (
(entry->checked) ||
!((entry_type >= MENU_SETTING_DROPDOWN_ITEM) &&
(entry_type <= MENU_SETTING_DROPDOWN_SETTING_UINT_ITEM_SPECIAL))
)
{
xmb_draw_icon(video_info,
xmb->icon_size,
&mymat_tmp,
texture,
@ -2927,6 +2934,7 @@ static int xmb_draw_item(
scale_factor,
&color[0],
xmb->shadow_offset);
}
}
menu_display_set_alpha(color, MIN(node->alpha, xmb->alpha));