Loop after solving maze

This commit is contained in:
Camden Dixie O'Brien 2024-11-04 00:46:09 +00:00
parent bf145830cc
commit aaf400d881

5
main.c
View File

@ -12,6 +12,7 @@
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#define MAZE_SIZE 24
@ -168,6 +169,7 @@ int main(void)
XNextEvent(dpy, &evt);
while (MapNotify != evt.type);
while (1) {
// Draw black box for walls
XClearWindow(dpy, window);
XSetForeground(dpy, ctx, wall_col);
@ -197,6 +199,9 @@ int main(void)
XFillRectangle(dpy, window, ctx, x, y, PX(1), PX(1));
XFlush(dpy);
sleep(1);
}
// Wait for window exit
bool is_del = false;
do {