summaryrefslogtreecommitdiffstats
path: root/src/demos/GLNewtRun.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-09-23 18:58:03 +0200
committerSven Gothel <[email protected]>2010-09-23 18:58:03 +0200
commit4bb9fed247d8151b317c32dd1f8d7bde03a1bcb6 (patch)
treedd097af09126ce7d7e7b3bf3ff0cd3132cbd80b9 /src/demos/GLNewtRun.java
parent35da0bfcb126c8b296a64274dcf5b757daa723d3 (diff)
Sync with JOGL: 1c02f0eeb539ff5de7259b822893ab63a9cc3ab0
Diffstat (limited to 'src/demos/GLNewtRun.java')
-rwxr-xr-xsrc/demos/GLNewtRun.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/demos/GLNewtRun.java b/src/demos/GLNewtRun.java
index d3816cc..82aec19 100755
--- a/src/demos/GLNewtRun.java
+++ b/src/demos/GLNewtRun.java
@@ -199,23 +199,25 @@ public class GLNewtRun extends WindowAdapter implements KeyListener, MouseListen
menuTest.add(new java.awt.Menu("External Frame Test - Menu"));
java.awt.Frame frame = new java.awt.Frame("External Frame Test");
frame.setMenuBar(menuTest);
- nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, new Object[] { frame }, nScreen, caps, undecorated);
+ nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, new Object[] { frame }, nScreen, caps);
} else {
- nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, nScreen, caps, undecorated);
+ nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, nScreen, caps);
}
} else {
Display nDisplay = NewtFactory.createDisplay(null); // local display
Screen nScreen = NewtFactory.createScreen(nDisplay, 0); // screen 0
if(parented) {
- Window parent = NewtFactory.createWindow(nScreen, caps, undecorated);
+ Window parent = NewtFactory.createWindow(nScreen, caps);
parent.setPosition(x_p, y_p);
parent.setSize(width+width/10, height+height/10);
parent.setVisible(true);
- nWindow = NewtFactory.createWindow(parent, caps, undecorated);
+ nWindow = NewtFactory.createWindow(parent, caps);
} else {
- nWindow = NewtFactory.createWindow(nScreen, caps, undecorated);
+ nWindow = NewtFactory.createWindow(nScreen, caps);
}
}
+ nWindow.setUndecorated(undecorated);
+ nWindow.getScreen().setDestroyWhenUnused(true);
window = GLWindow.create(nWindow);
if(!setField(demo, "window", window)) {