Fix an error in the canvas circle alogrithm.

Thanks to anonymissimus for spotting the issue in the code.
This commit is contained in:
Mark de Wever 2011-06-05 14:15:40 +00:00
parent 5d57f537bd
commit aa57134dc2

View file

@ -248,7 +248,7 @@ static void draw_circle(
d += 2 * y + 1;
++y;
if(d > 0) {
d -= 2 * x + 2;
d += -2 * x + 2;
--x;
}
}