mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
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:
+1
-1
@@ -1310,7 +1310,7 @@ animate(void)
|
|||||||
glutSetWindowTitle("glpuzzle");
|
glutSetWindowTitle("glpuzzle");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!solving && !spinning && !visible) {
|
if ((!solving && !spinning) || !visible) {
|
||||||
glutIdleFunc(NULL);
|
glutIdleFunc(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user