mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Some font option tweaks.
This commit is contained in:
parent
d46304a80c
commit
7344bfe9c6
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user