From 2f2eece4438c933fa2dcfb79ed522251b0db5183 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 29 Oct 2010 04:09:43 +0200 Subject: Accomodate JOGL changes up to ce24d32178106baa16e84f016192441ce45845a7 --- src/demos/es2/RedSquare.java | 4 ++-- src/demos/es2/openmax/Cube.java | 4 ++-- src/demos/es2/perftst/Perftst.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/demos/es2') diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java index 6606a5c..ec126db 100755 --- a/src/demos/es2/RedSquare.java +++ b/src/demos/es2/RedSquare.java @@ -104,8 +104,8 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo 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); window = GLWindow.create(nWindow); } else { window = GLWindow.create(caps); diff --git a/src/demos/es2/openmax/Cube.java b/src/demos/es2/openmax/Cube.java index a6dfc53..5d318cf 100644 --- a/src/demos/es2/openmax/Cube.java +++ b/src/demos/es2/openmax/Cube.java @@ -321,8 +321,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); window = GLWindow.create(nWindow); } else { window = GLWindow.create(caps); diff --git a/src/demos/es2/perftst/Perftst.java b/src/demos/es2/perftst/Perftst.java index d44479e..4860e51 100755 --- a/src/demos/es2/perftst/Perftst.java +++ b/src/demos/es2/perftst/Perftst.java @@ -54,8 +54,8 @@ public class Perftst implements MouseListener, GLEventListener { Window nWindow = null; 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); window = GLWindow.create(nWindow); } else { window = GLWindow.create(caps); -- cgit v1.2.3