Commit 3c47ff9b authored by gnomus's avatar gnomus
Browse files

don't call clear on screensaver updates

parent 2f9a5481
......@@ -21,8 +21,9 @@ class HIDrawDisplay(object):
self.set_position(1, 1)
self.show_raw_message(message)
def show_two_messages(self, message1, message2):
self.clear()
def show_two_messages(self, message1, message2, clear=True):
if clear:
self.clear()
self.set_position(1, 1)
self.show_raw_message(message1)
self.set_position(1, 2)
......
......@@ -40,7 +40,7 @@ class PacmanScreensaver(object):
return "".join(line)
def show(self):
self.display.show_two_messages(self.lines[0], self.lines[1])
self.display.show_two_messages(self.lines[0], self.lines[1], False)
sleep(0.5 - self.tick_time)
""" Returns True while active and False when finished """
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment