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;
|
b1 = 8 * b * b;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
// draw the points at the edge of the line
|
if (!fill) {
|
||||||
sys_scanline_internal_set(x0, x1, y0, c, false);
|
// draw the points at the edge of the line
|
||||||
sys_scanline_internal_set(x0, x1, y1, c, false);
|
sys_scanline_internal_set(x0, x1, y0, c, false);
|
||||||
|
sys_scanline_internal_set(x0, x1, y1, c, false);
|
||||||
|
}
|
||||||
int64_t e2 = 2 * err;
|
int64_t e2 = 2 * err;
|
||||||
if (e2 <= dy) {
|
if (e2 <= dy) {
|
||||||
if (fill) {
|
if (fill) {
|
||||||
|
Loading…
Reference in New Issue
Block a user