Skip to content

Commit bfd5312

Browse files
committed
Fix default values on last line.
1 parent c271754 commit bfd5312

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared-module/displayio/Shape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void common_hal_displayio_shape_construct(displayio_shape_t *self, uint32_t widt
4949
self->half_height = height;
5050

5151
self->data = m_malloc(height * sizeof(uint32_t), false);
52-
for (uint16_t i = 0; i < height; i++) {
52+
for (uint16_t i = 0; i <= height; i++) {
5353
self->data[2 * i] = 0;
5454
self->data[2 * i + 1] = width;
5555
}

0 commit comments

Comments
 (0)