X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/98488ab92877f83b7727ed2571c6da991e1783c1..8719c2e7d9245278ab694369b971caa7567b2f06:/pattern.c diff --git a/pattern.c b/pattern.c index 274fcdb..68383d7 100644 --- a/pattern.c +++ b/pattern.c @@ -1045,6 +1045,7 @@ static game_drawstate *game_new_drawstate(drawing *dr, game_state *state) ds->visible = snewn(ds->w * ds->h, unsigned char); ds->tilesize = 0; /* not decided yet */ memset(ds->visible, 255, ds->w * ds->h); + ds->cur_x = ds->cur_y = 0; return ds; }