X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmaze.c;h=10704fa77f90f852440a3e3cbb6afe17b70adb51;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=8576386b2ae9c4aba0af4c135c21830fcef9ce89;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/maze.c b/hacks/maze.c index 8576386b..10704fa7 100644 --- a/hacks/maze.c +++ b/hacks/maze.c @@ -93,10 +93,11 @@ #include /* #include */ +/* #define gray1_width 2 #define gray1_height 2 static const char gray1_bits[] = { 0x01, 0x02 }; - +*/ #define MAX_MAZE_SIZE_X 1000 #define MAX_MAZE_SIZE_Y 1000 @@ -1588,6 +1589,9 @@ maze_draw (Display *dpy, Window window, void *closure) st->stop = 0; st->state = 1; + if (st->solve_state && st->solve_state->running) + st->solve_state->running = 0; + st->sync_p = ((random() % 4) != 0); size = get_integer_resource (st->dpy, "gridSize", "Dimension");