diff options
| author | Kevin Matocha <kmatocha@icloud.com> | 2021-03-25 11:21:39 -0500 |
|---|---|---|
| committer | Kevin Matocha <kmatocha@icloud.com> | 2021-03-25 11:21:39 -0500 |
| commit | 9485805b6aa6178f2b4abe0eaefc76c4ebfc4b6d (patch) | |
| tree | 7a155f8c0f6fd2f0a4f0c0b6305882e4c627ae95 /shared-module/vectorio | |
| parent | c81007afb098f51c2ab8694720a22d47da0a016e (diff) | |
move to displayio_area_union and away from _expand
Diffstat (limited to 'shared-module/vectorio')
| -rw-r--r-- | shared-module/vectorio/VectorShape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/vectorio/VectorShape.c b/shared-module/vectorio/VectorShape.c index c6524af9d..62f53668c 100644 --- a/shared-module/vectorio/VectorShape.c +++ b/shared-module/vectorio/VectorShape.c @@ -88,7 +88,7 @@ void common_hal_vectorio_vector_shape_set_dirty(void *vector_shape) { self->ephemeral_dirty_area.x1, self->ephemeral_dirty_area.y1, self->ephemeral_dirty_area.x2, self->ephemeral_dirty_area.y2); self->dirty = true; // Dirty area tracks the shape's footprint between draws. It's reset on refresh finish, - displayio_area_expand(&self->ephemeral_dirty_area, ¤t_area); + displayio_area_union(&self->ephemeral_dirty_area, ¤t_area, &self->ephemeral_dirty_area); VECTORIO_SHAPE_DEBUG(" -> expanded:{(%3d,%3d), (%3d,%3d)}\n", self->ephemeral_dirty_area.x1, self->ephemeral_dirty_area.y1, self->ephemeral_dirty_area.x2, self->ephemeral_dirty_area.y2); } |
