From bb6f36cffe66509ebcc6da6d1a8d98cf48a0b749 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 18 Jan 2007 20:26:53 +0000 Subject: 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 --- test/glpuzzle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/glpuzzle.cxx b/test/glpuzzle.cxx index fd4d56344..6df075749 100644 --- a/test/glpuzzle.cxx +++ b/test/glpuzzle.cxx @@ -1310,7 +1310,7 @@ animate(void) glutSetWindowTitle("glpuzzle"); } } - if (!solving && !spinning && !visible) { + if ((!solving && !spinning) || !visible) { glutIdleFunc(NULL); } } -- cgit v1.2.3