Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions shared-module/bitmaptools/__init__.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ void common_hal_bitmaptools_draw_polygon(displayio_bitmap_t *destination, void *
draw_line(destination, xprev, yprev, x0, y0, value);
}

displayio_area_t area = { xmin, ymin, xmax, ymax, NULL };
displayio_area_t area = { xmin, ymin, xmax + 1, ymax + 1, NULL };
displayio_area_t bitmap_area = { 0, 0, destination->width, destination->height, NULL };
displayio_area_compute_overlap(&area, &bitmap_area, &area);
displayio_bitmap_set_dirty_area(destination, &area);
Expand Down Expand Up @@ -1069,9 +1069,9 @@ void common_hal_bitmaptools_draw_circle(displayio_bitmap_t *destination,
int16_t xbb0, xbb1, ybb0, ybb1;

xbb0 = x - radius;
xbb1 = x + radius;
xbb1 = x + radius + 1;
ybb0 = y - radius;
ybb1 = y + radius;
ybb1 = y + radius + 1;

displayio_area_t area = { xbb0, ybb0, xbb1, ybb1, NULL };
displayio_area_t bitmap_area = { 0, 0, destination->width, destination->height, NULL };
Expand Down
Loading