1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00

- MFH: libgd #74, gdImageFilledArc, huge CPU usage with large angles

This commit is contained in:
Pierre Joye
2007-04-14 17:33:15 +00:00
parent a4bf33f02d
commit ffaaaa4df0
2 changed files with 11 additions and 1 deletions

4
NEWS
View File

@@ -27,8 +27,10 @@ PHP NEWS
colors (Rob Leslie)
. Improved thread safety of the gif support (Roman Nemecek, Nuno, Pierre)
. Use the dimension of the GIF frame to create the destination image (Pierre)
. Load only once the local color map (Pierre)
. Load only once the local color map from a GIF data (Pierre)
. Improved thread safety of the freetype cache (Scott MacVicar, Nuno, Pierre)
. imagearc huge CPU usage with large angles (Pierre)
- Upgraded libraries bundled in the Windows distribution. (Edin)
. c-client (imap) to version 2006e
. libpq (PostgreSQL) to version 8.2.3

View File

@@ -1645,6 +1645,14 @@ 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 > 360) {
s = s % 360;
}
if (e > 360) {
e = e % 360;
}
while (s<0) {
s += 360;
}