summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wasp/apps/flashlight.py2
-rw-r--r--wasp/draw565.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/wasp/apps/flashlight.py b/wasp/apps/flashlight.py
index 5ca9734..12ba272 100644
--- a/wasp/apps/flashlight.py
+++ b/wasp/apps/flashlight.py
@@ -33,4 +33,4 @@ class FlashlightApp(object):
def draw(self):
"""Redraw the display from scratch."""
- wasp.watch.display.fill(0xffff)
+ wasp.watch.drawable.fill(0xffff)
diff --git a/wasp/draw565.py b/wasp/draw565.py
index f0313dc..86fdb36 100644
--- a/wasp/draw565.py
+++ b/wasp/draw565.py
@@ -296,7 +296,7 @@ class Draw565(object):
(w, h) = _bounding_box(s, font)
leftpad = (width - w) // 2
rightpad = width - w - leftpad
- display.fill(0, x, y, leftpad, h)
+ self.fill(0, x, y, leftpad, h)
x += leftpad
for ch in s:
@@ -305,7 +305,7 @@ class Draw565(object):
x += glyph[2] + 1
if width:
- display.fill(0, x, y, rightpad, h)
+ self.fill(0, x, y, rightpad, h)
def wrap(self, s, width):
"""Chunk a string so it can rendered within a specified width.