Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl
In directory sc8-pr-cvs1:/tmp/cvs-serv17848/src/java/org/lwjgl
Modified Files:
Display.java Window.java
Log Message:
Big changes for the new 0.6 LWJGL release
Index: Display.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Display.java 28 Mar 2003 19:00:52 -0000 1.22
+++ Display.java 28 Mar 2003 23:15:51 -0000 1.23
@@ -139,7 +139,7 @@
* Reset the display mode to whatever it was when LWJGL was initialized.
* Fails silently.
*/
- public static native void resetDisplayMode() throws Exception;
+ public static native void resetDisplayMode();
/**
* Retrieves the width of the created display
Index: Window.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Window.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Window.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Window.java 28 Mar 2003 19:00:53 -0000 1.5
+++ Window.java 28 Mar 2003 23:15:53 -0000 1.6
@@ -184,7 +184,7 @@
/**
* Destroy the window.
*/
- public final void destroy() {
+ public final synchronized void destroy() {
if (!created)
return;
doDestroy();
@@ -239,4 +239,10 @@
return "Window["+title+"]";
}
+ /**
+ * @return the current window, or null, if there is no current window
+ */
+ public static Window getCurrentWindow() {
+ return currentWindow;
+ }
}
|