GLPuzzle kept on solving, keeping the CPU busy and my legs warm (Laptop) (STR #1527)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2007-01-18 20:26:53 +00:00
parent f2ec919f29
commit bb6f36cffe

View File

@ -1310,7 +1310,7 @@ animate(void)
glutSetWindowTitle("glpuzzle");
}
}
if (!solving && !spinning && !visible) {
if ((!solving && !spinning) || !visible) {
glutIdleFunc(NULL);
}
}