summaryrefslogtreecommitdiff
path: root/apps/plugins/maze.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-09-10 22:55:10 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-09-10 22:55:10 +0000
commit61aa70c4831d10f1ff7a5a2ab773b8723de08d13 (patch)
treeeddcffd0f0fc3862596762ef60b42e627ba0e9f4 /apps/plugins/maze.c
parent3afaec3ead7503e2904cb1b2b676bed2b3d09907 (diff)
downloadrockbox-61aa70c4831d10f1ff7a5a2ab773b8723de08d13.tar.gz
rockbox-61aa70c4831d10f1ff7a5a2ab773b8723de08d13.zip
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c
index b5d4f08e9f..2948eb2aec 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)
112} 112}
113 113
114void coord_stack_get(struct coord_stack* stack, int index, int* x, int* y) 114void coord_stack_get(struct coord_stack* stack, int index, int* x, int* y)
115 { 115{
116 *y = stack->data[index]; 116 *y = stack->data[index];
117 *y &= 0xff; 117 *y &= 0xff;
118 *x = (stack->data[index])>>8; 118 *x = (stack->data[index])>>8;
@@ -390,7 +390,8 @@ void maze_solve(struct maze* maze)
390 maze->solved = ~(maze->solved); 390 maze->solved = ~(maze->solved);
391 391
392 /* copy maze for solving */ 392 /* copy maze for solving */
393 rb->memcpy(solved_maze, maze->maze, (MAZE_HEIGHT*MAZE_WIDTH*sizeof(maze->maze[0][0]))); 393 rb->memcpy(solved_maze, maze->maze,
394 (MAZE_HEIGHT*MAZE_WIDTH*sizeof(maze->maze[0][0])));
394 395
395 396
396 /* remove some borders and walls on start and end point */ 397 /* remove some borders and walls on start and end point */