ref: e6d25d75baba5f3bb92ebbbc5dbba10434f4dc4f
parent: 7e9228f15472ed1d9a691ac9b41ae52436e10cdf
author: Ben Harris <bjh21@bjh21.me.uk>
date: Wed Aug 9 11:41:55 EDT 2023
Dominosa: use new move_cursor() features
--- a/dominosa.c
+++ b/dominosa.c
@@ -2830,11 +2830,8 @@
sprintf(buf, "%c%d,%d", (int)(button == RIGHT_BUTTON ? 'E' : 'D'), d1, d2);
return dupstr(buf);
} else if (IS_CURSOR_MOVE(button)) {
- ui->cur_visible = true;
-
- move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false, NULL);
-
- return MOVE_UI_UPDATE;
+ return move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false,
+ &ui->cur_visible);
} else if (IS_CURSOR_SELECT(button)) {
int d1, d2;