Minor ellipse performance improvement
This commit is contained in:
parent
3440669227
commit
ff44a3436b
@ -144,9 +144,11 @@ void sys_oval_draw_ext(
|
||||
b1 = 8 * b * b;
|
||||
|
||||
do {
|
||||
// draw the points at the edge of the line
|
||||
sys_scanline_internal_set(x0, x1, y0, c, false);
|
||||
sys_scanline_internal_set(x0, x1, y1, c, false);
|
||||
if (!fill) {
|
||||
// draw the points at the edge of the line
|
||||
sys_scanline_internal_set(x0, x1, y0, c, false);
|
||||
sys_scanline_internal_set(x0, x1, y1, c, false);
|
||||
}
|
||||
int64_t e2 = 2 * err;
|
||||
if (e2 <= dy) {
|
||||
if (fill) {
|
||||
|
Loading…
Reference in New Issue
Block a user