diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-01-15 10:15:55 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-01-15 10:15:55 -0800 |
| commit | bfd531281a64c5f93eead33c916a26528e062745 (patch) | |
| tree | 97023a73ba7078906eed12ee1f7ab8a98bdfcd26 /shared-module | |
| parent | c27175496248424c0581211aa53a5371f44a37ce (diff) | |
Fix default values on last line.
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/displayio/Shape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/displayio/Shape.c b/shared-module/displayio/Shape.c index c0c52a279..2ae955a14 100644 --- a/shared-module/displayio/Shape.c +++ b/shared-module/displayio/Shape.c @@ -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; } |
