From d927861dbab8524c9655679459c32229a87f67dd Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 9 Jun 2020 10:24:28 -0700 Subject: [PATCH] Fix off by one issue for display drawing --- displayio/display.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/displayio/display.py b/displayio/display.py index 4325671..904302b 100644 --- a/displayio/display.py +++ b/displayio/display.py @@ -204,7 +204,7 @@ class Display: self._current_group._fill_area(buffer) # pylint: disable=protected-access # save image to buffer (or probably refresh buffer so we can compare) self._buffer.paste(buffer) - time.sleep(1) + # Eventually calculate dirty rectangles here self._subrectangles.append(Rectangle(0, 0, self._width, self._height)) @@ -231,13 +231,13 @@ class Display: self._write( self._set_column_command, self._encode_pos( - rectangle.x1 + self._colstart, rectangle.x2 + self._colstart + rectangle.x1 + self._colstart, rectangle.x2 + self._colstart - 1 ), ) self._write( self._set_row_command, self._encode_pos( - rectangle.y1 + self._rowstart, rectangle.y2 + self._rowstart + rectangle.y1 + self._rowstart, rectangle.y2 + self._rowstart - 1 ), ) self._write(self._write_ram_command, pixels) -- 2.49.0