From e04d12213e93986c2c1869021fa1b35e14a025ea Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Fri, 25 Mar 2022 16:12:29 -0700 Subject: [PATCH] Make display rotation consistent with CircuitPython --- displayio/_display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.49.0