]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - vectorio/_vectorshape.py
Fixes for issue #158
[hackapet/Adafruit_Blinka_Displayio.git] / vectorio / _vectorshape.py
index d3d1ddb3012155e1ef49db4e7be36b5b789d2f7d..999f82eed091e10126dac347d42844a16ba1e074 100644 (file)
@@ -122,9 +122,14 @@ class _VectorShape:
         self._get_screen_area(current_area)
         moved = current_area != self._current_area
         if moved:
+            # This will add _current_area (the old position) to dirty area 
             self._current_area.union(
                 self._ephemeral_dirty_area, self._ephemeral_dirty_area
             )
+            # This will add the new position to the dirty area
+            current_area.union(
+                self._ephemeral_dirty_area, self._ephemeral_dirty_area
+            )
             # Dirty area tracks the shape's footprint between draws.  It's reset on refresh finish.
             current_area.copy_into(self._current_area)
         self._current_area_dirty = True