From: Melissa LeBlanc-Williams Date: Fri, 25 Mar 2022 23:12:29 +0000 (-0700) Subject: Make display rotation consistent with CircuitPython X-Git-Tag: 0.10.0^2 X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/commitdiff_plain/e04d12213e93986c2c1869021fa1b35e14a025ea Make display rotation consistent with CircuitPython --- 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)))