diff options
| author | Jeff Epler <jepler@gmail.com> | 2021-03-19 20:40:30 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2021-03-19 20:40:30 -0500 |
| commit | 39500cdeab1f5eb197bd0f2dd0015e7c30c54b05 (patch) | |
| tree | 865bcdb267ba0d25f3cf862e143574f7c5a439de /shared-module | |
| parent | 95ac6c716b1f4e9172005b9f8b287d6a4c31836b (diff) | |
| parent | 40829d4cc85394513ca631cff23254344e29786c (diff) | |
Merge commit '40829d4cc85394513ca631cff23254344e29786c' of https://github.com/kmatch98/circuitpython into bitmap-dirty-improvements
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; |
