Some font option tweaks.

This commit is contained in:
Themaister 2014-04-08 16:13:44 +02:00
parent d46304a80c
commit 7344bfe9c6
2 changed files with 6 additions and 6 deletions

View File

@ -311,6 +311,8 @@ static void rgui_render(void *data)
else if (menu_type == RGUI_SETTINGS_SHADER_OPTIONS)
strlcpy(title, "SHADER OPTIONS", sizeof(title));
#endif
else if (menu_type == RGUI_SETTINGS_FONT_OPTIONS)
strlcpy(title, "FONT OPTIONS", sizeof(title));
else if (menu_type == RGUI_SETTINGS_GENERAL_OPTIONS)
strlcpy(title, "GENERAL OPTIONS", sizeof(title));
else if (menu_type == RGUI_SETTINGS_AUDIO_OPTIONS)

View File

@ -1891,14 +1891,12 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
break;
case RGUI_SETTINGS_FONT_SIZE:
if (action == RGUI_ACTION_LEFT)
{
if (g_settings.video.font_size >= 0)
g_settings.video.font_size--;
}
g_settings.video.font_size -= 1.0f;
else if (action == RGUI_ACTION_RIGHT)
g_settings.video.font_size++;
g_settings.video.font_size += 1.0f;
else if (action == RGUI_ACTION_START)
g_settings.video.font_size = 0;
g_settings.video.font_size = 0.0f;
g_settings.video.font_size = roundf(max(g_settings.video.font_size, 1.0f));
break;
default:
break;