- MFB: Fixed regression introduced by the fix for the libgd bug #74

This commit is contained in:
Pierre Joye 2007-06-14 19:18:00 +00:00
parent affcaa4cb5
commit f1ef64401e

View File

@ -1665,6 +1665,11 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e
int lx = 0, ly = 0;
int fx = 0, fy = 0;
if (s == e) {
s = 0; e = 360;
} else {
if (s > 360) {
s = s % 360;
}
@ -1673,13 +1678,17 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e
e = e % 360;
}
while (s<0) {
while (s < 0) {
s += 360;
}
while (e < s) {
e += 360;
}
if (s == e) {
s = 0; e = 360;
}
}
for (i = s; i <= e; i++) {
int x, y;