Skip to content

Commit fdfcaf0

Browse files
authored
Merge pull request #5200 from lesamouraipourpre/area-copy
Remove `displayio_copy_coords` from shared-module displayio
2 parents 57841dc + cba71ea commit fdfcaf0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

shared-module/displayio/__init__.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,6 @@ bool displayio_area_compute_overlap(const displayio_area_t *a,
296296
return true;
297297
}
298298

299-
void displayio_copy_coords(const displayio_area_t *src, displayio_area_t *dest) {
300-
dest->x1 = src->x1;
301-
dest->y1 = src->y1;
302-
dest->x2 = src->x2;
303-
dest->y2 = src->y2;
304-
}
305-
306299
bool displayio_area_empty(const displayio_area_t *a) {
307300
return (a->x1 == a->x2) || (a->y1 == a->y2);
308301
}
@@ -325,11 +318,11 @@ void displayio_area_union(const displayio_area_t *a,
325318
displayio_area_t *u) {
326319

327320
if (displayio_area_empty(a)) {
328-
displayio_copy_coords(b, u);
321+
displayio_area_copy(b, u);
329322
return;
330323
}
331324
if (displayio_area_empty(b)) {
332-
displayio_copy_coords(a, u);
325+
displayio_area_copy(a, u);
333326
return;
334327
}
335328
u->x1 = MIN(a->x1, b->x1);

0 commit comments

Comments
 (0)