Commit d4e06881 authored by Lutz Vieweg's avatar Lutz Vieweg

* Relax the difference threshold for "what is considered a perfect fps match"...

* Relax the difference threshold for "what is considered a perfect fps match" somewhat to allow for xrandr reported "71.93" fps to be considered a "perfect match" to 3 * 23.976024627686 - solves #14 
parent db42a25a
......@@ -159,7 +159,7 @@ function xrandr_find_best_fitting_rate(fps, output)
-- check for a "perfect" match (where fps rates of e.g. 60.0 are not equal 59.9 or such)
for i=1,#xrandr_rates do
r = xrandr_rates[i]
if (math.abs(r-(m * fps)) < 0.001) then
if (math.abs(r-(m * fps)) < 0.002) then
return r
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment