X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/bc548c6e1cf5d37e7e9898e318bddcc66191ab60..494d0cb125c96ebcc1aaba4a4fcee1143d44df12:/displayio/_display.py diff --git a/displayio/_display.py b/displayio/_display.py index 8890087..241a0aa 100644 --- a/displayio/_display.py +++ b/displayio/_display.py @@ -41,7 +41,7 @@ from ._constants import ( BACKLIGHT_PWM, ) -__version__ = "0.0.0-auto.0" +__version__ = "0.0.0+auto.0" __repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git" displays = [] @@ -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))) @@ -394,6 +394,7 @@ class Display: elif not value and self._refresh_thread.is_alive(): # Stop the thread self._refresh_thread.join() + self._refresh_thread = None @property def brightness(self) -> float: