10000 Update shared-module/bitmaptools/__init__.c · megacoder/circuitpython@f6a0fb2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6a0fb2

Browse files
Update shared-module/bitmaptools/__init__.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
1 parent 533f532 commit f6a0fb2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

shared-module/bitmaptools/__init__.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -961,24 +961,24 @@ STATIC void draw_circle(displayio_bitmap_t *destination,
961961
}
962962

963963
void common_hal_bitmaptools_draw_circle(displayio_bitmap_t *destination,
964-
int16_t x0, int16_t y0,
964+
int16_t x, int16_t y,
965965
int16_t radius,
966966
uint32_t value) {
967967

968968

969969
// update the dirty area
970970
int16_t xbb0, xbb1, ybb0, ybb1;
971971

972-
xbb0 = x0 - radius;
973-
xbb1 = x0 + radius;
974-
ybb0 = y0 - radius;
975-
ybb1 = y0 + radius;
972+
xbb0 = x - radius;
973+
xbb1 = x + radius;
974+
ybb0 = y - radius;
975+
ybb1 = y + radius;
976976

977977
displayio_area_t area = { xbb0, ybb0, xbb1, ybb1, NULL };
978978
displayio_area_t bitmap_area = { 0, 0, destination->width, destination->height, NULL };
979979
displayio_area_compute_overlap(&area, &bitmap_area, &area);
980980

981981
displayio_bitmap_set_dirty_area(destination, &area);
982982

983-
draw_circle(destination, x0, y0, radius, value);
983+
draw_circle(destination, x, y, radius, value);
984984
}

0 commit comments

Comments
 (0)
0