Merge commit '40829d4cc85394513ca631cff23254344e29786c' of https://github.com/kmatch98/circuitpython into bitmap-dirty-improvements
This commit is contained in:
commit
39500cdeab
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user