Fix issue where buffer was not updated after clearing screen

This commit is contained in:
Andrew Kay
2019-06-26 19:28:35 -05:00
parent ef40e50b58
commit 8e78bbdea8

View File

@@ -185,7 +185,10 @@ class Display:
self.interface.offload_write(b'\x00', address=0, repeat=((rows+1)*columns)-1)
# TODO: Update the buffer and dirty indicators to reflect the cleared screen.
# Update the buffer and dirty indicators to reflect the cleared screen.
for index in range(rows * columns):
self.buffer[index] = 0x00
self.dirty[index] = False
self.load_address_counter(index=0)