cvs: gd(GD_2_0) /libgd gd.c
[email protected] ("Pierre-Alain Joye")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1178521696@cvsserver> |
pajoye Mon May 7 07:08:16 2007 UTC
Modified files: (Branch: GD_2_0)
/gd/libgd gd.c
Log:
- #79, regression in gdImageArc when used with gdAntiAliased
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.49.2.8&r2=1.49.2.9&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.49.2.8 gd/libgd/gd.c:1.49.2.9
--- gd/libgd/gd.c:1.49.2.8 Sun May 6 20:12:01 2007
+++ gd/libgd/gd.c Mon May 7 07:08:16 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.49.2.8 2007/05/06 20:12:01 pajoye Exp $ */
+/* $Id: gd.c,v 1.49.2.9 2007/05/07 07:08:16 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -1610,6 +1610,13 @@
{
e += 360;
}
+ /* Disable antialias, we don't support it. It also have bad side effects
+ on the polylines rendering. The top/bottom and right/left of the arc
+ look horrible when AA is enabled. */
+ if (color = gdAntiAliased) {
+ color = im->AA_color;
+ }
+
for (i = s; (i <= e); i++)
{
int x, y;