|
From: Elias N. <eli...@us...> - 2003-09-17 10:48:35
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv17829/src/java/org/lwjgl/opengl Modified Files: Window.java Log Message: Enabled awt hack on Mac OS X Index: Window.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Window.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Window.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Window.java 17 Aug 2003 18:40:57 -0000 1.8 +++ Window.java 17 Sep 2003 10:48:00 -0000 1.9 @@ -28,6 +28,15 @@ static { System.loadLibrary(Sys.getLibraryName()); + /* + * HACK: This is nescessary to establish the Mac OS X dock icon and + * system menu. Without them, windows will misbehave. + * + * I'm accepting this hack on the assumption that awt is always present + * on an Mac OS X JVM. + */ + if (Display.getPlatform() == Display.PLATFORM_AGL) + java.awt.Toolkit.getDefaultToolkit(); } /** Whether the window is currently created, ie. has a native peer */ |