diff options
| author | Kevin Matocha <kmatocha@icloud.com> | 2021-03-19 20:30:37 -0500 |
|---|---|---|
| committer | Kevin Matocha <kmatocha@icloud.com> | 2021-03-19 20:30:37 -0500 |
| commit | 40829d4cc85394513ca631cff23254344e29786c (patch) | |
| tree | 4c2f8d4a6f39ec6b42497d189eadefa963a4397e /shared-module | |
| parent | f5fd42c39340483bc781746fd0acd304abd888ae (diff) | |
switch to > in displayio_area_canon
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/displayio/__init__.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-module/displayio/__init__.c b/shared-module/displayio/__init__.c index 18d08c530..d238c2816 100644 --- a/shared-module/displayio/__init__.c +++ b/shared-module/displayio/__init__.c @@ -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; |
