From c593e1e9f92963d0058de148930549f5e050490a Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 5 Apr 2020 09:29:06 +0100 Subject: wasp: draw565: Allow the drawing context to be reset The main reason to reset the drawing context is so that it can be reset before we call foreground() on an application. diff --git a/wasp/draw565.py b/wasp/draw565.py index 3f1f6cc..19efcd4 100644 --- a/wasp/draw565.py +++ b/wasp/draw565.py @@ -78,6 +78,10 @@ class Draw565(object): and 24 pt Sans Serif text. """ self._display = display + self.reset() + + def reset(self): + """Restore the default colour and font.""" self.set_color(0xffff) self.set_font(fonts.sans24) diff --git a/wasp/wasp.py b/wasp/wasp.py index f624a8f..899fb7e 100644 --- a/wasp/wasp.py +++ b/wasp/wasp.py @@ -130,6 +130,7 @@ class Manager(): self.app = app watch.display.mute(True) + watch.drawable.reset() app.foreground() watch.display.mute(False) -- cgit v0.10.2