From: Melissa LeBlanc-Williams Date: Tue, 9 Jun 2020 17:24:28 +0000 (-0700) Subject: Fix off by one issue for display drawing X-Git-Tag: 0.2.1^2 X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/commitdiff_plain/d927861dbab8524c9655679459c32229a87f67dd?ds=sidebyside Fix off by one issue for display drawing --- 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)