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

ext/gd/libgd/gd.c

index c82ac31c0015ac1c744400376d31592198efe5fb..766c6799834cbddc575711ce716f83d1ba222b28 100644 (file)
@@ -1737,8 +1737,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--;