From: Mikko Rasa Date: Sat, 21 Sep 2013 17:09:45 +0000 (+0300) Subject: Fix a math error in oversize calculation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=aabeac6c43b24adadd6f591bd1607adbfab6c28f;p=libs%2Fvr.git Fix a math error in oversize calculation --- diff --git a/source/oculusriftcombiner.cpp b/source/oculusriftcombiner.cpp index 6d5ebf1..b15c86b 100644 --- a/source/oculusriftcombiner.cpp +++ b/source/oculusriftcombiner.cpp @@ -147,7 +147,7 @@ void OculusRiftCombiner::update_parameters() /* Determine the necessary scaling factor to avoid quality degradation in the center of the screen. */ - float horiz_oversize = distort((fill_factor-lens_separation)*2)-eye_offset; + float horiz_oversize = distort((fill_factor-lens_separation)*2)/((fill_factor-lens_separation)*2)-eye_offset; float vert_oversize = distort(1.25f*fill_factor)/(1.25f*fill_factor); oversize = min(horiz_oversize, vert_oversize);