summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modframebuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/modframebuf.c')
-rw-r--r--extmod/modframebuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/modframebuf.c b/extmod/modframebuf.c
index cd0f50d104..b718a66cc6 100644
--- a/extmod/modframebuf.c
+++ b/extmod/modframebuf.c
@@ -536,6 +536,10 @@ static mp_obj_t framebuf_ellipse(size_t n_args, const mp_obj_t *args_in) {
} else {
mask |= ELLIPSE_MASK_ALL;
}
+ if (args[2] == 0 && args[3] == 0) {
+ setpixel_checked(self, args[0], args[1], args[4], mask & ELLIPSE_MASK_ALL);
+ return mp_const_none;
+ }
mp_int_t two_asquare = 2 * args[2] * args[2];
mp_int_t two_bsquare = 2 * args[3] * args[3];
mp_int_t x = args[2];