Skip to content
Snippets Groups Projects
Commit 1f5dbfe8 authored by tanguy.cavagna's avatar tanguy.cavagna :desktop:
Browse files

Missing pixel in circle outline fixed

parent 6f3e264f
No related branches found
No related tags found
1 merge request!6Missing pixel in circle outline fixed
......@@ -101,15 +101,15 @@ void gfx_draw_circle(struct gfx_context_t *ctxt, coordinates_t c, int r, uint32_
// Rotate
if (d >= 2 * x) {
d -= (2 * x) - 1;
x += 1;
d -= (2 * x) - 1;
} else if (d < 2 * (r - y)) {
d += (2 * y) - 1;
y -= 1;
d += (2 * y) - 1;
} else {
d += 2 * (y - x - 1);
y -= 1;
x += 1;
d += 2 * (y - x - 1);
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment