mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- MFB: Fixed regression introduced by the fix for the libgd bug #74
This commit is contained in:
parent
affcaa4cb5
commit
f1ef64401e
1 changed files with 20 additions and 11 deletions
|
@ -1665,20 +1665,29 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e
|
||||||
int lx = 0, ly = 0;
|
int lx = 0, ly = 0;
|
||||||
int fx = 0, fy = 0;
|
int fx = 0, fy = 0;
|
||||||
|
|
||||||
if (s > 360) {
|
|
||||||
s = s % 360;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (e > 360) {
|
if (s == e) {
|
||||||
e = e % 360;
|
s = 0; e = 360;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
while (s<0) {
|
if (s > 360) {
|
||||||
s += 360;
|
s = s % 360;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (e < s) {
|
if (e > 360) {
|
||||||
e += 360;
|
e = e % 360;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (s < 0) {
|
||||||
|
s += 360;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (e < s) {
|
||||||
|
e += 360;
|
||||||
|
}
|
||||||
|
if (s == e) {
|
||||||
|
s = 0; e = 360;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = s; i <= e; i++) {
|
for (i = s; i <= e; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue