From 6fd7dc05198dbefb33afeed07edac6ec96e2488a Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Wed, 5 Aug 2020 16:28:11 -0500 Subject: [PATCH] [SWITCH] Fix input bind icons being off by one line --- menu/drivers/ozone/ozone_texture.c | 4 ++++ menu/drivers/xmb.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/menu/drivers/ozone/ozone_texture.c b/menu/drivers/ozone/ozone_texture.c index 00d53842d3..20630703bc 100644 --- a/menu/drivers/ozone/ozone_texture.c +++ b/menu/drivers/ozone/ozone_texture.c @@ -468,6 +468,10 @@ uintptr_t ozone_entries_icon_get_texture(ozone_handle_t *ozone, input_id = MENU_SETTINGS_INPUT_BEGIN; if (type == input_id + 1) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_INPUT_ADC]; +#ifdef HAVE_LIBNX + // account for the additional split joycon option in Input User # Binds + input_id++; +#endif if (type == input_id + 2) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_INPUT_SETTINGS]; if (type == input_id + 3) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 9ef9f18c74..e4276d554d 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2899,6 +2899,10 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb, input_id = MENU_SETTINGS_INPUT_BEGIN; if ( type == input_id + 1) return xmb->textures.list[XMB_TEXTURE_INPUT_ADC]; +#ifdef HAVE_LIBNX + // account for the additional split joycon option in Input # Binds + input_id++; +#endif if ( type == input_id + 2) return xmb->textures.list[XMB_TEXTURE_INPUT_SETTINGS]; if ( type == input_id + 3)