pixman: Branch 'master'

M. Joonas Pihlaja joonas at kemper.freedesktop.org
Tue Jan 5 15:33:52 PST 2010


 pixman/pixman-conical-gradient.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7862f9b96e8e8456cc60852790c7f244a5e3425e
Author: Pierre-Loup A. Griffais <pgriffais at nvidia.com>
Date:   Wed Jan 6 01:26:07 2010 +0200

    Interpret the angle of a conical gradient in degrees.
    
    The conical gradient angle's fixed point degrees to
    radians conversion code is missing a factor of pi.

diff --git a/pixman/pixman-conical-gradient.c b/pixman/pixman-conical-gradient.c
index d720db3..369a7a5 100644
--- a/pixman/pixman-conical-gradient.c
+++ b/pixman/pixman-conical-gradient.c
@@ -49,7 +49,7 @@ conical_gradient_get_scanline_32 (pixman_image_t *image,
     double rx = x + 0.5;
     double ry = y + 0.5;
     double rz = 1.;
-    double a = conical->angle / (180. * 65536);
+    double a = (conical->angle * M_PI) / (180. * 65536);
 
     _pixman_gradient_walker_init (&walker, gradient, source->common.repeat);
 


More information about the xorg-commit mailing list