|
From: Caspian Rychlik-P. <ci...@us...> - 2003-03-24 22:12:20
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl
In directory sc8-pr-cvs1:/tmp/cvs-serv1547/src/java/org/lwjgl
Modified Files:
Tag: experimental
Sys.java
Log Message:
Index: Sys.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java,v
retrieving revision 1.16.2.1
retrieving revision 1.16.2.2
diff -u -d -r1.16.2.1 -r1.16.2.2
--- Sys.java 24 Mar 2003 21:41:12 -0000 1.16.2.1
+++ Sys.java 24 Mar 2003 22:12:14 -0000 1.16.2.2
@@ -107,10 +107,6 @@
*/
public static final boolean DEBUG;
- /** Finish flag. This will exit the game's main loop. */
- private static boolean finished;
-
-
private static boolean _debug;
static {
try {
@@ -291,11 +287,11 @@
boolean wasMinimized = true;
- while (!finished) {
+ for (;;) {
if (isCloseRequested()) {
// Immediately exit
- finished = true;
+ break;
} if (isMinimized()) {
if (!wasMinimized) {
// Set task priority to LOW.
@@ -358,13 +354,6 @@
}
}
- /**
- * Finish the main loop. This will cause the game to exit cleanly.
- */
- public static void finish() {
- finished = true;
- }
-
/**
* Swap the video buffers.
*/
|