mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(Menu) Cleanups
This commit is contained in:
parent
1834084567
commit
3c57ea5df1
@ -1363,14 +1363,13 @@ static void setting_get_string_representation_st_float_video_refresh_rate_auto(v
|
|||||||
|
|
||||||
if (video_monitor_fps_statistics(&video_refresh_rate, &deviation, &sample_points))
|
if (video_monitor_fps_statistics(&video_refresh_rate, &deviation, &sample_points))
|
||||||
{
|
{
|
||||||
|
menu_animation_t *anim = menu_animation_get_ptr();
|
||||||
|
|
||||||
snprintf(s, len, "%.3f Hz (%.1f%% dev, %u samples)",
|
snprintf(s, len, "%.3f Hz (%.1f%% dev, %u samples)",
|
||||||
video_refresh_rate, 100.0 * deviation, sample_points);
|
video_refresh_rate, 100.0 * deviation, sample_points);
|
||||||
{
|
|
||||||
menu_animation_t *anim = menu_animation_get_ptr();
|
|
||||||
|
|
||||||
if (anim)
|
if (anim)
|
||||||
anim->label.is_updated = true;
|
anim->label.is_updated = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
strlcpy(s, menu_hash_to_str(MENU_VALUE_NOT_AVAILABLE), len);
|
strlcpy(s, menu_hash_to_str(MENU_VALUE_NOT_AVAILABLE), len);
|
||||||
@ -7044,6 +7043,8 @@ static bool setting_append_list_input_player_options(
|
|||||||
if (!keybind || keybind->meta)
|
if (!keybind || keybind->meta)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
strlcpy(label, buffer[user], sizeof(label));
|
||||||
|
strlcat(label, " ", sizeof(label));
|
||||||
if (
|
if (
|
||||||
settings->input.input_descriptor_label_show
|
settings->input.input_descriptor_label_show
|
||||||
&& (i < RARCH_FIRST_META_KEY)
|
&& (i < RARCH_FIRST_META_KEY)
|
||||||
@ -7051,9 +7052,6 @@ static bool setting_append_list_input_player_options(
|
|||||||
&& (i != RARCH_TURBO_ENABLE)
|
&& (i != RARCH_TURBO_ENABLE)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
strlcpy(label, buffer[user], sizeof(label));
|
|
||||||
strlcat(label, " ", sizeof(label));
|
|
||||||
|
|
||||||
if (global->system.input_desc_btn[user][i])
|
if (global->system.input_desc_btn[user][i])
|
||||||
strlcat(label,
|
strlcat(label,
|
||||||
global->system.input_desc_btn[user][i], sizeof(label));
|
global->system.input_desc_btn[user][i], sizeof(label));
|
||||||
@ -7067,7 +7065,7 @@ static bool setting_append_list_input_player_options(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
snprintf(label, sizeof(label), "%s %s", buffer[user], keybind->desc);
|
strlcat(label, keybind->desc, sizeof(label));
|
||||||
|
|
||||||
snprintf(name, sizeof(name), "p%u_%s", user + 1, keybind->base);
|
snprintf(name, sizeof(name), "p%u_%s", user + 1, keybind->base);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user