Merge pull request #4287 from pewpew-game/displayio-transpose-uint

Use uint16 for temporary variables in displayio.TileGrid
This commit is contained in:
Scott Shawcroft 2021-03-04 10:01:07 -08:00 committed by GitHub
commit 3698d4bc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {