summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/sudoku.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sudoku.cxx b/test/sudoku.cxx
index 97e17de75..3bc45e687 100644
--- a/test/sudoku.cxx
+++ b/test/sudoku.cxx
@@ -375,6 +375,8 @@ Sudoku::check_game(bool highlight) {
SudokuCell *cell = grid_cells_[i][j];
int val = cell->value();
+ if (cell->readonly()) continue;
+
if (!val) empty = true;
else {
for (k = 0; k < 9; k ++)
@@ -388,6 +390,9 @@ Sudoku::check_game(bool highlight) {
}
correct = false;
+ } else if (highlight) {
+ cell->color(FL_LIGHT3);
+ cell->redraw();
}
}
}