xrandr: Use floating point for VTotal when calculating refresh rate
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 31 May 2013 14:01:54 +0000 (17:01 +0300)
committerAaron Plattner <aplattner@nvidia.com>
Thu, 20 Feb 2014 00:10:53 +0000 (16:10 -0800)
commit00c795e99fe29ecd56e05e915e508c7af0ac39ad
tree90f2fb832b65917efea00d43d2986f9d54186f17
parent8f9b993342fddfceaa1afbec2996ce10038f10d7
xrandr: Use floating point for VTotal when calculating refresh rate

Interlaced modes generally have an odd VTotal, so we lose half a line
from VTotal when we divide by two. That causes the final refresh rate
to be slightly off. Make VTotal a double to avoid the problem.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
xrandr.c