X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/ab1a833052aa0736448b2785540e57e8d0af76f3..99fbaf4a7f79e91b7e8ccd04de7aab82566cbebf:/displayio/display.py diff --git a/displayio/display.py b/displayio/display.py index 3f93177..578888a 100644 --- a/displayio/display.py +++ b/displayio/display.py @@ -341,9 +341,8 @@ class Display: """Extract the pixels from a single row""" for x in range(0, self._width): _rgb_565 = self._rgb_tuple_to_rgb565(self._buffer.getpixel((x, y))) - buffer[x * 2] = _rgb_565 >> 8 - buffer[x * 2 + 1] = _rgb_565 - #(data[i * 2] << 8) + data[i * 2 + 1] + buffer[x * 2] = (_rgb_565 >> 8) & 0xff + buffer[x * 2 + 1] = _rgb_565 & 0xff return buffer @property