From d779ffcf131f24d548516b00c8cf196215aecb37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Thu, 29 Oct 2015 02:34:52 +0700 Subject: [PATCH] (GLUI) Show appropriate tab names --- menu/drivers/glui.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index 1ead6d37ee..912508e053 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -710,9 +710,20 @@ static void glui_frame(void) if (i == glui->categories.selection_ptr) tab_color = activetab_color; + char tab_label[PATH_MAX_LENGTH]; + switch (i) + { + case GLUI_SYSTEM_TAB_MAIN: + strlcpy(tab_label, menu_hash_to_str(MENU_VALUE_MAIN_MENU), sizeof(tab_label)); + break; + case GLUI_SYSTEM_TAB_PLAYLISTS: + strlcpy(tab_label, menu_hash_to_str(MENU_VALUE_PLAYLISTS_TAB), sizeof(tab_label)); + break; + } + glui_blit_line(width / (GLUI_SYSTEM_TAB_END+1) * (i+0.5), header_height - header_height/8, - width, height, "TAB", tab_color, TEXT_ALIGN_CENTER); + width, height, tab_label, tab_color, TEXT_ALIGN_CENTER); } tab_width = width / (GLUI_SYSTEM_TAB_END+1);