initialise display state variables in constructor

This commit is contained in:
Greg Hewgill 2011-10-01 08:17:38 +13:00
parent c9ecb5f31e
commit 4ee9b846f9

View File

@ -109,6 +109,10 @@ class Display:
self.flash_time = time.time() self.flash_time = time.time()
self.flash_on = False self.flash_on = False
self.flash_chars = [[0] * 0x400] * 2 self.flash_chars = [[0] * 0x400] * 2
self.page = 1
self.text = True
self.colour = False
self.chargen = [] self.chargen = []
for c in self.characters: for c in self.characters: