]> granicus.if.org Git - php/commitdiff
- MFB: #32891, init old y positions to non possible values. -1 being used
authorPierre Joye <pajoye@php.net>
Sun, 1 May 2005 06:01:56 +0000 (06:01 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 1 May 2005 06:01:56 +0000 (06:01 +0000)
  if the center start a (x,0)

ext/gd/libgd/gd.c

index 18a5934240221768676e8e358ffc838fbc842058..b799abb0420fb46d32e201a01c7578ba6b0583ea 100644 (file)
@@ -1735,8 +1735,8 @@ void gdImageFilledEllipse (gdImagePtr im, int mx, int my, int w, int h, int c)
        rx = r << 1;
        ry = 0;
        x = a;
-       old_y2=-1;
-       old_y1=-1;
+       old_y2=-2;
+       old_y1=-2;
        while (x > 0){
                if (r > 0) {
                        my1++;my2--;