switch to > in displayio_area_canon

This commit is contained in:
Kevin Matocha 2021-03-19 20:30:37 -05:00
parent f5fd42c393
commit 40829d4cc8

View file

@ -321,12 +321,12 @@ bool displayio_area_empty(const displayio_area_t *a) {
} }
void displayio_area_canon(displayio_area_t *a) { void displayio_area_canon(displayio_area_t *a) {
if (a->x1 < a->x2) { if (a->x1 > a->x2) {
int16_t t = a->x1; int16_t t = a->x1;
a->x1 = a->x2; a->x1 = a->x2;
a->x2 = t; a->x2 = t;
} }
if (a->y1 < a->y2) { if (a->y1 > a->y2) {
int16_t t = a->y1; int16_t t = a->y1;
a->y1 = a->y2; a->y1 = a->y2;
a->y2 = t; a->y2 = t;