forked from len0rd/rockbox
Code police and keep backlight on while in mazezam
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14667 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3afaec3ead
commit
61aa70c483
2 changed files with 108 additions and 54 deletions
|
@ -112,7 +112,7 @@ void coord_stack_push(struct coord_stack* stack, int x, int y)
|
|||
}
|
||||
|
||||
void coord_stack_get(struct coord_stack* stack, int index, int* x, int* y)
|
||||
{
|
||||
{
|
||||
*y = stack->data[index];
|
||||
*y &= 0xff;
|
||||
*x = (stack->data[index])>>8;
|
||||
|
@ -390,7 +390,8 @@ void maze_solve(struct maze* maze)
|
|||
maze->solved = ~(maze->solved);
|
||||
|
||||
/* copy maze for solving */
|
||||
rb->memcpy(solved_maze, maze->maze, (MAZE_HEIGHT*MAZE_WIDTH*sizeof(maze->maze[0][0])));
|
||||
rb->memcpy(solved_maze, maze->maze,
|
||||
(MAZE_HEIGHT*MAZE_WIDTH*sizeof(maze->maze[0][0])));
|
||||
|
||||
|
||||
/* remove some borders and walls on start and end point */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue