mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
Group: implement game_get_cursor_location().
This should allow zoomed-in play on Rockbox.
This commit is contained in:

committed by
Simon Tatham

parent
877133ae5d
commit
5edcabb967
@ -2274,6 +2274,12 @@ static void game_get_cursor_location(const game_ui *ui,
|
|||||||
const game_params *params,
|
const game_params *params,
|
||||||
int *x, int *y, int *w, int *h)
|
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)
|
static int game_status(const game_state *state)
|
||||||
|
Reference in New Issue
Block a user