1
0
Fork 0

wasp: st7789: Reuse the pre-allocated linebuffer

This commit is contained in:
Daniel Thompson 2020-02-03 22:32:53 +00:00
parent b124a747dd
commit 118b7bab00

View file

@ -98,8 +98,7 @@ class ST7789(object):
(sx, sy, rle) = image
self.set_window(pos[0], pos[1], sx, sy)
# TODO: rework algorithm to allow us to reuse the line buffer
buf = bytearray(2*sx)
buf = memoryview(self.linebuffer)[0:2*sx]
bp = 0
color = bg