Minor ellipse performance improvement

This commit is contained in:
Pyrex 2024-02-25 23:15:10 -08:00
parent 3440669227
commit ff44a3436b

View File

@ -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) {