fix terminalio not clearing on construct

This commit is contained in:
brentru 2019-08-08 14:58:51 -04:00
parent 47a0b7cba1
commit 1b7e213be4
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ void common_hal_terminalio_terminal_construct(terminalio_terminal_obj_t *self, d
self->tilegrid = tilegrid;
self->first_row = 0;
for (uint16_t x = 0; x < self->tilegrid->width_in_tiles; x++) {
for (uint16_t y = 0; y < self->tilegrid->height_in_tiles; y++) {
common_hal_displayio_tilegrid_set_tile(self->tilegrid, x, y, 0);
}
}
common_hal_displayio_tilegrid_set_top_left(self->tilegrid, 0, 1);
}