(Menu) Default width of label to 21 by default instead of going

through complicated type heuristics
This commit is contained in:
twinaphex 2014-09-04 18:40:12 +02:00
parent 497e497c3f
commit a0d32b50ae
3 changed files with 5 additions and 20 deletions

View File

@ -352,16 +352,11 @@ static void rgui_render(void)
setting_data_get_list(),
driver.menu->selection_buf->list[i].label);
unsigned w = 19;
(void)setting;
unsigned w = 21;
(void)setting;
if (!strcmp(label, "performance_counters"))
w = 28;
else if (menu_type == MENU_SETTINGS_INPUT_OPTIONS ||
menu_type == MENU_SETTINGS_CUSTOM_BIND ||
menu_type == MENU_SETTINGS_CUSTOM_BIND_KEYBOARD)
w = 21;
else if (menu_type == MENU_SETTINGS_PATH_OPTIONS)
w = 24;
#ifdef HAVE_SHADER_MANAGER
if (type >= MENU_SETTINGS_SHADER_FILTER &&

View File

@ -225,12 +225,7 @@ static void rmenu_render(void)
char message[256];
char type_str[256];
unsigned w = 19;
if (menu_type == MENU_SETTINGS_INPUT_OPTIONS ||
menu_type == MENU_SETTINGS_CUSTOM_BIND)
w = 21;
else if (menu_type == MENU_SETTINGS_PATH_OPTIONS)
w = 24;
unsigned w = 21;
#ifdef HAVE_SHADER_MANAGER
if (type >= MENU_SETTINGS_SHADER_FILTER &&

View File

@ -437,12 +437,7 @@ static void rmenu_xui_render(void)
char message[256];
char type_str[256];
unsigned w = 19;
if (menu_type == MENU_SETTINGS_INPUT_OPTIONS ||
menu_type == MENU_SETTINGS_CUSTOM_BIND)
w = 21;
else if (menu_type == MENU_SETTINGS_PATH_OPTIONS)
w = 24;
unsigned w = 21;
if (type >= MENU_SETTINGS_SHADER_FILTER &&
type <= MENU_SETTINGS_SHADER_LAST)