wasp: st7789: Reuse the pre-allocated linebuffer
This commit is contained in:
parent
b124a747dd
commit
118b7bab00
1 changed files with 1 additions and 2 deletions
|
@ -98,8 +98,7 @@ class ST7789(object):
|
||||||
(sx, sy, rle) = image
|
(sx, sy, rle) = image
|
||||||
self.set_window(pos[0], pos[1], sx, sy)
|
self.set_window(pos[0], pos[1], sx, sy)
|
||||||
|
|
||||||
# TODO: rework algorithm to allow us to reuse the line buffer
|
buf = memoryview(self.linebuffer)[0:2*sx]
|
||||||
buf = bytearray(2*sx)
|
|
||||||
bp = 0
|
bp = 0
|
||||||
color = bg
|
color = bg
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue