Commits

pajoye  committed 1f29704

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

  • Participants
  • Parent commits 69f5990

Comments (0)

Files changed (1)

   int i;
   int lx = 0, ly = 0;
   int fx = 0, fy = 0;
+
+	if (s > 360) {
+		s = s % 360;
+	}
+
+	if (e > 360) {
+		e = e % 360;
+	}
+
   while (e < s)
     {
       e += 360;