(Menu) Certain labels need to have video state be updated if they

update in real-time, like the estimated monitor FPS label
This commit is contained in:
twinaphex 2015-03-08 17:09:45 +01:00
parent b5b59608dd
commit beb68d559d
1 changed files with 3 additions and 0 deletions

View File

@ -1142,8 +1142,11 @@ static void setting_data_get_string_representation_st_float_video_refresh_rate_a
return;
if (video_monitor_fps_statistics(&video_refresh_rate, &deviation, &sample_points))
{
snprintf(type_str, type_str_size, "%.3f Hz (%.1f%% dev, %u samples)",
video_refresh_rate, 100.0 * deviation, sample_points);
g_runloop.frames.video.current.menu.label.is_updated = true;
}
else
strlcpy(type_str, "N/A", type_str_size);
}