Skip to content

Commit 39500cd

Browse files
committed
Merge commit '40829d4cc85394513ca631cff23254344e29786c' of https://github.com/kmatch98/circuitpython into bitmap-dirty-improvements
2 parents 95ac6c7 + 40829d4 commit 39500cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-module/displayio/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ bool displayio_area_empty(const displayio_area_t *a) {
321321
}
322322

323323
void displayio_area_canon(displayio_area_t *a) {
324-
if (a->x1 < a->x2) {
324+
if (a->x1 > a->x2) {
325325
int16_t t = a->x1;
326326
a->x1 = a->x2;
327327
a->x2 = t;
328328
}
329-
if (a->y1 < a->y2) {
329+
if (a->y1 > a->y2) {
330330
int16_t t = a->y1;
331331
a->y1 = a->y2;
332332
a->y2 = t;

0 commit comments

Comments
 (0)