Prevent refresh rate switching to half frame rate modes (#13656)

This commit is contained in:
Tony 2022-02-24 08:10:27 +02:00 committed by GitHub
parent 569704fb37
commit 7768c296b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1170,8 +1170,8 @@ void video_switch_refresh_rate_maybe(
/* Black frame insertion + swap interval multiplier */
refresh_rate = (refresh_rate * (video_bfi + 1.0f) * video_swap_interval);
/* Fallback when target refresh rate is not exposed */
if (!video_display_server_has_refresh_rate(refresh_rate))
/* Fallback when target refresh rate is not exposed or when below standards */
if (!video_display_server_has_refresh_rate(refresh_rate) || refresh_rate < 50)
refresh_rate = video_refresh_rate;
*refresh_rate_suggest = refresh_rate;