diff options
Diffstat (limited to 'wasp/draw565.py')
| -rw-r--r-- | wasp/draw565.py | 4 |
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. |
