Skip to content

Commit

Permalink
Some minor optimizations for 1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffitus committed Apr 17, 2020
1 parent 3a754b5 commit 2579ed6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ bool draw_puzzle(void) {
}
}

gfx_BlitBuffer();
return puzzle_filled;
}

Expand Down
5 changes: 4 additions & 1 deletion src/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,15 @@ void reveal_solution(void) {

for (i = 0; i < 9; i++) {
for (j = 0; j < 9; j++) {
puzzle[i][j] |= SOLUTION(puzzle[i][j] & SOLUTION_DATA);
if (puzzle[i][j] & UNDEFINED) {
puzzle[i][j] = SOLUTION(puzzle[i][j] & SOLUTION_DATA) | UNDEFINED;
}
}
}

draw_grid();
draw_puzzle();
gfx_BlitBuffer();
wait_for_key_press();
wait_for_key_release();
}

0 comments on commit 2579ed6

Please sign in to comment.