cvs: gd(GD_2_0) /libgd gd.c /libgd/tests CMakeLists.txt /libgd/tests/gdimagearc CMakeLists.txt bug00079.c bug00079_exp.png
[email protected] ("Pierre-Alain Joye")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1178533317@cvsserver> |
pajoye Mon May 7 10:21:57 2007 UTC
Added files: (Branch: GD_2_0)
/gd/libgd/tests/gdimagearc bug00079_exp.png bug00079.c
CMakeLists.txt
Modified files:
/gd/libgd gd.c
/gd/libgd/tests CMakeLists.txt
Log:
- #79:
- reverse wrong fix
- fix hline and vline calls
- add test case
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.49.2.9&r2=1.49.2.10&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.49.2.9 gd/libgd/gd.c:1.49.2.10
--- gd/libgd/gd.c:1.49.2.9 Mon May 7 07:08:16 2007
+++ gd/libgd/gd.c Mon May 7 10:21:57 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.49.2.9 2007/05/07 07:08:16 pajoye Exp $ */
+/* $Id: gd.c,v 1.49.2.10 2007/05/07 10:21:57 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -1610,12 +1610,6 @@
{
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++)
{
@@ -3463,10 +3457,10 @@
/* Axis aligned lines */
if (dx == 0) {
- gdImageHLine(im, y1, x1, x2, col);
+ gdImageVLine(im, x1, y1, y2, col);
return;
} else if (dy == 0) {
- gdImageVLine(im, x1, y1, y2, col);
+ gdImageHLine(im, y1, x1, x2, col);
return;
}
http://cvs.php.net/viewvc.cgi/gd/libgd/tests/CMakeLists.txt?r1=1.1&r2=1.1.2.1&diff_format=u
Index: gd/libgd/tests/CMakeLists.txt
diff -u gd/libgd/tests/CMakeLists.txt:1.1 gd/libgd/tests/CMakeLists.txt:1.1.2.1
--- gd/libgd/tests/CMakeLists.txt:1.1 Tue Jan 23 23:55:00 2007
+++ gd/libgd/tests/CMakeLists.txt Mon May 7 10:21:57 2007
@@ -28,6 +28,7 @@
SET(TESTS_DIRS
gdtest
+ gdimagearc
gdimagecolorclosest
gdimagecolorexact
gdimagecolorresolve
http://cvs.php.net/viewvc.cgi/gd/libgd/tests/gdimagearc/bug00079.c?view=markup&rev=1.1
Index: gd/libgd/tests/gdimagearc/bug00079.c
+++ gd/libgd/tests/gdimagearc/bug00079.c
http://cvs.php.net/viewvc.cgi/gd/libgd/tests/gdimagearc/CMakeLists.txt?view=markup&rev=1.1
Index: gd/libgd/tests/gdimagearc/CMakeLists.txt
+++ gd/libgd/tests/gdimagearc/CMakeLists.txt