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
1 changed files with 2 additions and 2 deletions

View File

@ -321,12 +321,12 @@ bool displayio_area_empty(const 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;
a->x1 = a->x2;
a->x2 = t;
}
if (a->y1 < a->y2) {
if (a->y1 > a->y2) {
int16_t t = a->y1;
a->y1 = a->y2;
a->y2 = t;