Fix default values on last line.

This commit is contained in:
Scott Shawcroft 2019-01-15 10:15:55 -08:00
parent c271754962
commit bfd531281a
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -49,7 +49,7 @@ void common_hal_displayio_shape_construct(displayio_shape_t *self, uint32_t widt
self->half_height = height;
self->data = m_malloc(height * sizeof(uint32_t), false);
for (uint16_t i = 0; i < height; i++) {
for (uint16_t i = 0; i <= height; i++) {
self->data[2 * i] = 0;
self->data[2 * i + 1] = width;
}