From 8a55694f3ba44676a091eafa7cb491075108be9f Mon Sep 17 00:00:00 2001 From: FoamyGuy Date: Fri, 3 Jul 2020 08:44:52 -0500 Subject: [PATCH] trying to implement fill_row function --- displayio/display.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/displayio/display.py b/displayio/display.py index 3f93177..4fc2bf7 100644 --- a/displayio/display.py +++ b/displayio/display.py @@ -341,8 +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 + buffer[x * 2] = (_rgb_565 >> 8) & 0xff + buffer[x * 2 + 1] = _rgb_565 & 0xff #(data[i * 2] << 8) + data[i * 2 + 1] return buffer -- 2.49.0