From 6a46bf1d591904db6b46bb00a0c35a8ff72bfc0a Mon Sep 17 00:00:00 2001 From: Evan New-Schmidt Date: Mon, 27 May 2019 16:38:22 -0700 Subject: [PATCH] Fix bounds-checking bug --- src/frontend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend.c b/src/frontend.c index f4440c9..baf0bea 100644 --- a/src/frontend.c +++ b/src/frontend.c @@ -377,7 +377,7 @@ void draw_collab_cursors(collab_list_t *collab_list) { for (int i = 0; i < collab_list->len; i++) { c = collab_list->list[i]; // only draw cursors that exist and are visible on the screen - if (c != NULL && (c->x >= min_x && c->y <= max_x) && + if (c != NULL && (c->x >= min_x && c->x <= max_x) && (c->y >= min_y && c->y <= max_y)) { logd("Drawing collab %i\n", c->uid);