1 parent c271754 commit bfd5312Copy full SHA for bfd5312
1 file changed
shared-module/displayio/Shape.c
@@ -49,7 +49,7 @@ void common_hal_displayio_shape_construct(displayio_shape_t *self, uint32_t widt
49
self->half_height = height;
50
51
self->data = m_malloc(height * sizeof(uint32_t), false);
52
- for (uint16_t i = 0; i < height; i++) {
+ for (uint16_t i = 0; i <= height; i++) {
53
self->data[2 * i] = 0;
54
self->data[2 * i + 1] = width;
55
}
0 commit comments