cvs: gd /libgd gd.c

From: Date: Sun, 06 May 2007 18:43:06 +0000
Subject: cvs: gd /libgd gd.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-192@lists.php.net to get a copy of this message
pajoye Sun May 6 18:43:06 2007 UTC Modified files: /gd/libgd gd.c Log: - MFB: #74, gdImageFilledArc, huge CPU usage with large angles http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.53&r2=1.54&diff_format=u Index: gd/libgd/gd.c diff -u gd/libgd/gd.c:1.53 gd/libgd/gd.c:1.54 --- gd/libgd/gd.c:1.53 Sun May 6 18:41:36 2007 +++ gd/libgd/gd.c Sun May 6 18:43:06 2007 @@ -1,4 +1,4 @@ -/* $Id: gd.c,v 1.53 2007/05/06 18:41:36 pajoye Exp $ */ +/* $Id: gd.c,v 1.54 2007/05/06 18:43:06 pajoye Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -1597,6 +1597,15 @@ int i; int lx = 0, ly = 0; int fx = 0, fy = 0; + + if (s > 360) { + s = s % 360; + } + + if (e > 360) { + e = e % 360; + } + while (e < s) { e += 360;

« previous php.gd.cvs (#192) next »