ref: e30d11ecd169c2e963fada4cac28123b4f4f9a7e
parent: e6d25d75baba5f3bb92ebbbc5dbba10434f4dc4f
author: Ben Harris <bjh21@bjh21.me.uk>
date: Wed Aug 9 11:48:14 EDT 2023
Light Up: use new move_cursor() features
--- a/lightup.c
+++ b/lightup.c
@@ -1975,10 +1975,8 @@
}
ui->cur_visible = true;
} else if (IS_CURSOR_MOVE(button)) {
- move_cursor(button, &ui->cur_x, &ui->cur_y, state->w, state->h, false,
- NULL);
- ui->cur_visible = true;
- nullret = empty;
+ nullret = move_cursor(button, &ui->cur_x, &ui->cur_y,
+ state->w, state->h, false, &ui->cur_visible);
} else
return NULL;