Merge pull request #4287 from pewpew-game/displayio-transpose-uint
Use uint16 for temporary variables in displayio.TileGrid
This commit is contained in:
commit
3698d4bc5d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user