summaryrefslogtreecommitdiff
path: root/wasp/draw565.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-22 21:21:13 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-22 21:21:13 (GMT)
commitbbe8add40c82d4e2360d453ff277be9ce351c8e4 (patch)
treed29d805399b94ca80fe088d30d2337577b26d683 /wasp/draw565.py
parent04a8daeff4bef4649d12ce78e6949c9d744a238b (diff)
wasp: Switch to the faster fill routines
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/draw565.py')
-rw-r--r--wasp/draw565.py4
1 files changed, 2 insertions, 2 deletions
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.