Skip to content

Commit 2a3cd5b

Browse files
committed
Use uint16 for temporary variables in displayio.TileGrid
Should fix #4284
1 parent f4886a6 commit 2a3cd5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-module/displayio/TileGrid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ bool displayio_tilegrid_get_previous_area(displayio_tilegrid_t *self, displayio_
104104
}
105105

106106
void _update_current_x(displayio_tilegrid_t *self) {
107-
int16_t width;
107+
uint16_t width;
108108
if (self->transpose_xy) {
109109
width = self->pixel_height;
110110
} else {
@@ -130,7 +130,7 @@ void _update_current_x(displayio_tilegrid_t *self) {
130130
}
131131

132132
void _update_current_y(displayio_tilegrid_t *self) {
133-
int16_t height;
133+
uint16_t height;
134134
if (self->transpose_xy) {
135135
height = self->pixel_width;
136136
} else {

0 commit comments

Comments
 (0)