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

Merge branch 'hotfix/andres-circle-fix' into 'master'

Missing pixel in circle outline fixed

See merge request physics/electric-field!6
parents 6f3e264f 1f5dbfe8
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