Skip to content

Conversation

@makermelissa
Copy link
Collaborator

No description provided.

@makermelissa makermelissa requested a review from a team June 30, 2020 22:10
@makermelissa makermelissa merged commit 1715d92 into adafruit:master Jun 30, 2020
self._top_left_x = 0
self._top_left_y = 0
if tile_width is None:
if tile_width is None or tile_width == 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not tile_width: would cover both cases.

tile_height = bitmap_height
if tile_width > 0 and bitmap_width % tile_width != 0:
if tile_width < 1:
tile_width = 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's raise an exception instead. 0 makes no sense and should therefore be invalid.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably fix it in display_text first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants