diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-09-10 22:55:10 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-09-10 22:55:10 +0000 |
| commit | 61aa70c4831d10f1ff7a5a2ab773b8723de08d13 (patch) | |
| tree | eddcffd0f0fc3862596762ef60b42e627ba0e9f4 /apps/plugins/maze.c | |
| parent | 3afaec3ead7503e2904cb1b2b676bed2b3d09907 (diff) | |
| download | rockbox-61aa70c4831d10f1ff7a5a2ab773b8723de08d13.zip rockbox-61aa70c4831d10f1ff7a5a2ab773b8723de08d13.tar.gz rockbox-61aa70c4831d10f1ff7a5a2ab773b8723de08d13.tar.bz2 rockbox-61aa70c4831d10f1ff7a5a2ab773b8723de08d13.tar.xz | |
Code police and keep backlight on while in mazezam
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14667 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/maze.c')
| -rw-r--r-- | apps/plugins/maze.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c index b5d4f08..2948eb2 100644 --- a/apps/plugins/maze.c +++ b/apps/plugins/maze.c @@ -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 */ |