1 parent f34360b commit 4fbbb99Copy full SHA for 4fbbb99
1 file changed
shared-module/displayio/Shape.c
@@ -59,7 +59,7 @@ void common_hal_displayio_shape_set_boundary(displayio_shape_t *self, uint16_t y
59
if (y < 0 || y >= self->height || (self->mirror_y && y > self->half_height)) {
60
mp_raise_ValueError(translate("y value out of bounds"));
61
}
62
- if (start_x < 0 || start_x > self->width || end_x < 0 || end_x > self->height) {
+ if (start_x < 0 || start_x > self->width || end_x < 0 || end_x > self->width) {
63
mp_raise_ValueError(translate("x value out of bounds"));
64
65
uint16_t half_width = self->width / 2 - 1 + self->width % 2;
0 commit comments