|
From: Elias N. <eli...@us...> - 2005-01-06 14:22:36
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13712/src/java/org/lwjgl/opengl Modified Files: Display.java Log Message: call setLocation _after_ window has been created Index: Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Display.java,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- Display.java 27 Dec 2004 21:38:50 -0000 1.36 +++ Display.java 6 Jan 2005 14:22:25 -0000 1.37 @@ -201,13 +201,13 @@ * A native context must exist, and it will be attached to the window. */ private static void createWindow() throws LWJGLException { - // if no display location set, center window - if(x == -1 && y == -1) { - setLocation(Math.max(0, (initial_mode.getWidth() - current_mode.getWidth()) / 2), - Math.max(0, (initial_mode.getHeight() - current_mode.getHeight()) / 2)); - } - display_impl.createWindow(current_mode, fullscreen, (fullscreen) ? 0 : x, (fullscreen) ? 0 : y); + // if no display location set, center window + if(x == -1 && y == -1) { + setLocation(Math.max(0, (initial_mode.getWidth() - current_mode.getWidth()) / 2), + Math.max(0, (initial_mode.getHeight() - current_mode.getHeight()) / 2)); + } + setTitle(title); initControls(); setVSyncEnabled(vsync); |