New rule: interpret_move() is passed a pointer to the game_drawstate
[sgt/puzzles] / twiddle.c
index 51a21f0..b5b276f 100644 (file)
--- a/twiddle.c
+++ b/twiddle.c
@@ -640,7 +640,7 @@ struct game_drawstate {
     int cur_x, cur_y;
 };
 
-static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
+static char *interpret_move(game_state *state, game_ui *ui, const game_drawstate *ds,
                            int x, int y, int button)
 {
     int w = state->w, h = state->h, n = state->n /* , wh = w*h */;