summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shared-module/displayio/TileGrid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-module/displayio/TileGrid.c b/shared-module/displayio/TileGrid.c
index 19ea10e55..2cd3a4948 100644
--- a/shared-module/displayio/TileGrid.c
+++ b/shared-module/displayio/TileGrid.c
@@ -104,7 +104,7 @@ bool displayio_tilegrid_get_previous_area(displayio_tilegrid_t *self, displayio_
}
void _update_current_x(displayio_tilegrid_t *self) {
- int16_t width;
+ uint16_t width;
if (self->transpose_xy) {
width = self->pixel_height;
} else {
@@ -130,7 +130,7 @@ void _update_current_x(displayio_tilegrid_t *self) {
}
void _update_current_y(displayio_tilegrid_t *self) {
- int16_t height;
+ uint16_t height;
if (self->transpose_xy) {
height = self->pixel_width;
} else {