1
0
Fork 0
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:
Peter D'Hoye 2007-09-10 22:55:10 +00:00
parent 3afaec3ead
commit 61aa70c483
2 changed files with 108 additions and 54 deletions

View file

@ -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 */