summaryrefslogtreecommitdiff
path: root/wasp/draw565.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-05 08:29:06 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-06 21:04:20 (GMT)
commitc593e1e9f92963d0058de148930549f5e050490a (patch)
tree952665c922e3bc72383db46ef69ac9db001dc88b /wasp/draw565.py
parentb2622b579dfc265850401b44a8b825533ea2ec17 (diff)
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.
Diffstat (limited to 'wasp/draw565.py')
-rw-r--r--wasp/draw565.py4
1 files changed, 4 insertions, 0 deletions
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)