8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95ac6c7 + 40829d4 commit 39500cdCopy full SHA for 39500cd
shared-module/displayio/__init__.c
@@ -321,12 +321,12 @@ bool displayio_area_empty(const displayio_area_t *a) {
321
}
322
323
void displayio_area_canon(displayio_area_t *a) {
324
- if (a->x1 < a->x2) {
+ if (a->x1 > a->x2) {
325
int16_t t = a->x1;
326
a->x1 = a->x2;
327
a->x2 = t;
328
329
- if (a->y1 < a->y2) {
+ if (a->y1 > a->y2) {
330
int16_t t = a->y1;
331
a->y1 = a->y2;
332
a->y2 = t;
0 commit comments