Fix for crt interlaced bug
This commit is contained in:
parent
719cb86bc0
commit
952b46f2c1
|
@ -3232,15 +3232,27 @@ bool video_context_driver_get_metrics(gfx_ctx_metrics_t *metrics)
|
||||||
|
|
||||||
bool video_context_driver_get_refresh_rate(float *refresh_rate)
|
bool video_context_driver_get_refresh_rate(float *refresh_rate)
|
||||||
{
|
{
|
||||||
|
float refresh_holder = 0;
|
||||||
|
|
||||||
if (!current_video_context.get_refresh_rate || !refresh_rate)
|
if (!current_video_context.get_refresh_rate || !refresh_rate)
|
||||||
return false;
|
return false;
|
||||||
if (!video_context_data)
|
if (!video_context_data)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!video_driver_crt_switching_active)
|
||||||
if (refresh_rate)
|
if (refresh_rate)
|
||||||
*refresh_rate =
|
*refresh_rate =
|
||||||
current_video_context.get_refresh_rate(video_context_data);
|
current_video_context.get_refresh_rate(video_context_data);
|
||||||
|
|
||||||
|
if (video_driver_crt_switching_active)
|
||||||
|
{
|
||||||
|
if (refresh_rate)
|
||||||
|
refresh_holder =
|
||||||
|
current_video_context.get_refresh_rate(video_context_data);
|
||||||
|
if (refresh_holder != video_driver_core_hz) /* Fix for incorrect interlace detsction -- HARD SET VSNC TO REQUIRED REFRESH FOR CRT*/
|
||||||
|
*refresh_rate = video_driver_core_hz;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue