From a15ae21bd29cd2316583fea9450e48151992446a Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 4 Nov 2008 12:43:06 +0000 Subject: [PATCH] * clutter/cogl/gl/cogl.c (cogl_perspective): Use the accurate 64-bit multiplication macro instead of COGL_FIXED_FAST_DIV for calculating xmax as was done previously. This fixes test-perspective and other tests that had a gone a bit skewiff. --- ChangeLog | 7 +++++++ clutter/cogl/gl/cogl.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 076c17cfa..f622531df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-11-04 Neil Roberts + + * clutter/cogl/gl/cogl.c (cogl_perspective): Use the accurate + 64-bit multiplication macro instead of COGL_FIXED_FAST_DIV for + calculating xmax as was done previously. This fixes + test-perspective and other tests that had a gone a bit skewiff. + 2008-11-04 Neil Roberts Bug 1181 - In Score, timelines, appended at markers, are also diff --git a/clutter/cogl/gl/cogl.c b/clutter/cogl/gl/cogl.c index e17a8adf9..a77256e78 100644 --- a/clutter/cogl/gl/cogl.c +++ b/clutter/cogl/gl/cogl.c @@ -775,7 +775,7 @@ cogl_perspective (CoglFixed fovy, COGL_FIXED_FAST_DIV (cogl_fixed_sin (fovy_rad_half), cogl_fixed_cos (fovy_rad_half))); - xmax = COGL_FIXED_FAST_DIV (ymax, aspect); + xmax = COGL_FIXED_MUL (ymax, aspect); x = COGL_FIXED_FAST_DIV (zNear, xmax); y = COGL_FIXED_FAST_DIV (zNear, ymax);