From 507fa8028eb1cd1f15317fb02fe016e894b647a8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 29 Oct 2015 13:05:01 +0100 Subject: [PATCH] Set tabs_height again if glui_list_get_size is 1 --- menu/drivers/glui.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index c0601cabf1..7e26ee5139 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -743,6 +743,11 @@ static void glui_frame(void) /* display tabs if depth equal one, if not hide them */ if (glui_list_get_size(menu, MENU_LIST_PLAIN) == 1) { + float scale_factor; + menu_display_ctl(MENU_DISPLAY_CTL_GET_DPI, &scale_factor); + + glui->tabs_height = scale_factor / 3; + /* tabs background */ glui_render_quad(gl, 0, height - glui->tabs_height, width, glui->tabs_height,