Skip to content

Commit

Permalink
Wrong device height
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-hull committed Feb 23, 2017
1 parent 9ec1c6b commit 4a69c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ChangeLog
+------------+---------------------------------------------------------------------+------------+
| Version | Description | Date |
+============+=====================================================================+============+
| *Upcoming* | *TBC* | |
| *Upcoming* | * Bug fix: ``legacy.show_message`` wrong device height | |
+------------+---------------------------------------------------------------------+------------+
| **0.3.1** | * Imported legacy font handling from ``rm-hull/luma.led_matrix`` | 2017/02/19 |
+------------+---------------------------------------------------------------------+------------+
Expand Down
2 changes: 1 addition & 1 deletion luma/core/legacy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def show_message(device, msg, y_offset=0, fill=None, font=None, scroll_delay=0.0
w, h = textsize(msg, font)

x = device.width
virtual = viewport(device, width=w + x + x, height=h)
virtual = viewport(device, width=w + x + x, height=device.height)

with canvas(virtual) as draw:
text(draw, (x, y_offset), msg, font=font, fill=fill)
Expand Down

0 comments on commit 4a69c37

Please sign in to comment.