Prevent refresh rate switching to half frame rate modes (#13656)
This commit is contained in:
parent
569704fb37
commit
7768c296b9
|
@ -1170,8 +1170,8 @@ void video_switch_refresh_rate_maybe(
|
||||||
/* Black frame insertion + swap interval multiplier */
|
/* Black frame insertion + swap interval multiplier */
|
||||||
refresh_rate = (refresh_rate * (video_bfi + 1.0f) * video_swap_interval);
|
refresh_rate = (refresh_rate * (video_bfi + 1.0f) * video_swap_interval);
|
||||||
|
|
||||||
/* Fallback when target refresh rate is not exposed */
|
/* Fallback when target refresh rate is not exposed or when below standards */
|
||||||
if (!video_display_server_has_refresh_rate(refresh_rate))
|
if (!video_display_server_has_refresh_rate(refresh_rate) || refresh_rate < 50)
|
||||||
refresh_rate = video_refresh_rate;
|
refresh_rate = video_refresh_rate;
|
||||||
|
|
||||||
*refresh_rate_suggest = refresh_rate;
|
*refresh_rate_suggest = refresh_rate;
|
||||||
|
|
Loading…
Reference in New Issue