Fix an error in the canvas circle alogrithm.
Thanks to anonymissimus for spotting the issue in the code.
This commit is contained in:
parent
5d57f537bd
commit
aa57134dc2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue