Group: implement game_get_cursor_location().

This should allow zoomed-in play on Rockbox.
This commit is contained in:
Franklin Wei
2025-01-03 21:58:31 -05:00
committed by Simon Tatham
parent 877133ae5d
commit 5edcabb967

View File

@ -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)