summaryrefslogtreecommitdiffstats
path: root/src/jake2/render/opengl
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2007-11-03 13:04:23 +0000
committerCarsten Weisse <[email protected]>2007-11-03 13:04:23 +0000
commit5bfb4c43c3c4b038cb797155da56013656ac6500 (patch)
treec2bb4eb88619c0c78c2ebb705aea3b6a1c167bab /src/jake2/render/opengl
parentead589a5eb19ee7d29fe96e27418aac775a802e5 (diff)
set new window location only in fullscreen mode
Diffstat (limited to 'src/jake2/render/opengl')
-rw-r--r--src/jake2/render/opengl/Jsr231Driver.java2
-rw-r--r--src/jake2/render/opengl/Jsr231cbDriver.java3
-rw-r--r--src/jake2/render/opengl/LwjglDriver.java5
3 files changed, 4 insertions, 6 deletions
diff --git a/src/jake2/render/opengl/Jsr231Driver.java b/src/jake2/render/opengl/Jsr231Driver.java
index 4f1b841..565e79c 100644
--- a/src/jake2/render/opengl/Jsr231Driver.java
+++ b/src/jake2/render/opengl/Jsr231Driver.java
@@ -207,7 +207,7 @@ public abstract class Jsr231Driver extends Jsr231GL implements GLDriver {
try {
EventQueue.invokeAndWait(new Runnable() {
public void run() {
- f2.setLocation(window_xpos, window_ypos);
+ //f2.setLocation(window_xpos, window_ypos);
f2.pack();
f2.setResizable(false);
f2.setVisible(true);
diff --git a/src/jake2/render/opengl/Jsr231cbDriver.java b/src/jake2/render/opengl/Jsr231cbDriver.java
index e5a06ed..5580db6 100644
--- a/src/jake2/render/opengl/Jsr231cbDriver.java
+++ b/src/jake2/render/opengl/Jsr231cbDriver.java
@@ -194,7 +194,6 @@ public abstract class Jsr231cbDriver extends Jsr231GL implements GLDriver, GLEve
//canvas.setGL(new DebugGL(canvas.getGL()));
canvas.setAutoSwapBufferMode(false);
- canvas.setAutoSwapBufferMode(false);
canvas.addGLEventListener(this);
@@ -236,7 +235,7 @@ public abstract class Jsr231cbDriver extends Jsr231GL implements GLDriver, GLEve
VID.Printf(Defines.PRINT_ALL, "...setting fullscreen " + getModeString(displayMode) + '\n');
} else {
- window.setLocation(window_xpos, window_ypos);
+ //window.setLocation(window_xpos, window_ypos);
window.pack();
window.setResizable(false);
window.setVisible(true);
diff --git a/src/jake2/render/opengl/LwjglDriver.java b/src/jake2/render/opengl/LwjglDriver.java
index c4c898a..e44dffc 100644
--- a/src/jake2/render/opengl/LwjglDriver.java
+++ b/src/jake2/render/opengl/LwjglDriver.java
@@ -2,7 +2,7 @@
* LWJGLBase.java
* Copyright (C) 2004
*
- * $Id: LwjglDriver.java,v 1.4 2007-02-14 19:50:48 cawe Exp $
+ * $Id: LwjglDriver.java,v 1.5 2007-11-03 13:04:23 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -219,7 +219,6 @@ public abstract class LwjglDriver extends LwjglGL implements GLDriver {
shutdown();
Display.setTitle("Jake2 (lwjgl)");
- Display.setLocation(0, 0);
DisplayMode displayMode = findDisplayMode(newDim);
newDim.width = displayMode.getWidth();
@@ -255,7 +254,7 @@ public abstract class LwjglDriver extends LwjglGL implements GLDriver {
} catch (LWJGLException e) {
return Base.rserr_invalid_fullscreen;
}
- Display.setLocation(window_xpos, window_ypos);
+ //Display.setLocation(window_xpos, window_ypos);
}
Base.setVid(newDim.width, newDim.height);