Skip to content

Commit fe12944

Browse files
mikeysklarclaude
andcommitted
bitmaptools: include the last row and column in draw_circle's dirty area
The same exclusive-limit mistake as draw_polygon: pixels on the right and bottom edges stayed off the display, and a circle of radius 0 did not appear. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 29fd483 commit fe12944

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎shared-module/bitmaptools/__init__.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,9 +1069,9 @@ void common_hal_bitmaptools_draw_circle(displayio_bitmap_t *destination,
10691069
int16_t xbb0, xbb1, ybb0, ybb1;
10701070

10711071
xbb0 = x - radius;
1072-
xbb1 = x + radius;
1072+
xbb1 = x + radius + 1;
10731073
ybb0 = y - radius;
1074-
ybb1 = y + radius;
1074+
ybb1 = y + radius + 1;
10751075

10761076
displayio_area_t area = { xbb0, ybb0, xbb1, ybb1, NULL };
10771077
displayio_area_t bitmap_area = { 0, 0, destination->width, destination->height, NULL };

0 commit comments

Comments
 (0)