From 61aa70c4831d10f1ff7a5a2ab773b8723de08d13 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Mon, 10 Sep 2007 22:55:10 +0000 Subject: Code police and keep backlight on while in mazezam git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14667 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/maze.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/plugins/maze.c') 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) } 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 */ -- cgit v1.2.3