From 5edcabb967adb1b032bd46e4abb9c0015cd8a3c7 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 3 Jan 2025 21:58:31 -0500 Subject: [PATCH] Group: implement game_get_cursor_location(). This should allow zoomed-in play on Rockbox. --- unfinished/group.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unfinished/group.c b/unfinished/group.c index 6b9c4da..2f8e8bb 100644 --- a/unfinished/group.c +++ b/unfinished/group.c @@ -2274,6 +2274,12 @@ static void game_get_cursor_location(const game_ui *ui, const game_params *params, int *x, int *y, int *w, int *h) { + if(ui->hshow) { + *x = BORDER + LEGEND + ui->hx * TILESIZE + 1; + *y = BORDER + LEGEND + ui->hy * TILESIZE + 1; + *w = TILESIZE - 1; + *h = TILESIZE - 1; + } } static int game_status(const game_state *state)