X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/bc548c6e1cf5d37e7e9898e318bddcc66191ab60..4e776382e4cc71e15cbd17a74428c63707109f7e:/displayio/_display.py diff --git a/displayio/_display.py b/displayio/_display.py index 8890087..41d53d1 100644 --- a/displayio/_display.py +++ b/displayio/_display.py @@ -289,7 +289,7 @@ class Display: def _refresh_display_area(self, rectangle): """Loop through dirty rectangles and redraw that area.""" img = self._buffer.convert("RGB").crop(astuple(rectangle)) - img = img.rotate(self._rotation, expand=True) + img = img.rotate(360 - self._rotation, expand=True) display_rectangle = self._apply_rotation(rectangle) img = img.crop(astuple(self._clip(display_rectangle)))