summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/cube
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es1/cube')
-rw-r--r--src/demos/es1/cube/Cube.java4
-rw-r--r--src/demos/es1/cube/CubeImmModeSink.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/demos/es1/cube/Cube.java b/src/demos/es1/cube/Cube.java
index 430e475..fa88674 100644
--- a/src/demos/es1/cube/Cube.java
+++ b/src/demos/es1/cube/Cube.java
@@ -328,8 +328,8 @@ public class Cube implements GLEventListener {
GLWindow window;
if(0!=(type&USE_AWT)) {
Display nDisplay = NewtFactory.createDisplay(NativeWindowFactory.TYPE_AWT, null); // local display
- Screen nScreen = NewtFactory.createScreen(NativeWindowFactory.TYPE_AWT, nDisplay, 0); // screen 0
- nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, nScreen, caps);
+ Screen nScreen = NewtFactory.createScreen(nDisplay, 0); // screen 0
+ nWindow = NewtFactory.createWindow(nScreen, caps);
nWindow.setUndecorated(false);
window = GLWindow.create(nWindow);
} else {
diff --git a/src/demos/es1/cube/CubeImmModeSink.java b/src/demos/es1/cube/CubeImmModeSink.java
index 279a19b..a75b274 100644
--- a/src/demos/es1/cube/CubeImmModeSink.java
+++ b/src/demos/es1/cube/CubeImmModeSink.java
@@ -393,8 +393,8 @@ public class CubeImmModeSink implements GLEventListener {
GLWindow window;
if(0!=(type&USE_AWT)) {
Display nDisplay = NewtFactory.createDisplay(NativeWindowFactory.TYPE_AWT, null); // local display
- Screen nScreen = NewtFactory.createScreen(NativeWindowFactory.TYPE_AWT, nDisplay, 0); // screen 0
- nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, nScreen, caps);
+ Screen nScreen = NewtFactory.createScreen(nDisplay, 0); // screen 0
+ nWindow = NewtFactory.createWindow(nScreen, caps);
nWindow.setUndecorated(false);
window = GLWindow.create(nWindow);
} else {