Update shared-module/bitmaptools/__init__.c

Co-authored-by: Dan Halbert <halbert@halwitz.org>
This commit is contained in:
jposada202020 2023-03-30 15:43:57 -04:00 committed by GitHub
parent 9a77199f2e
commit 4986ad6d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -928,8 +928,8 @@ STATIC void draw_circle(displayio_bitmap_t *destination,
int16_t d, yb;
mp_arg_validate_int_range(x0, SHRT_MIN, SHRT_MAX, MP_QSTR_x);
mp_arg_validate_int_range(y0, SHRT_MIN, SHRT_MAX, MP_QSTR_y);
mp_arg_validate_int_range(x, SHRT_MIN, SHRT_MAX, MP_QSTR_x);
mp_arg_validate_int_range(y, SHRT_MIN, SHRT_MAX, MP_QSTR_y);
x = MIN(x, destination->width);
x = MAX(0, x);