summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/driver/x11/X11Display.java4
-rw-r--r--src/newt/classes/jogamp/newt/driver/x11/X11Screen.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/x11/X11Display.java b/src/newt/classes/jogamp/newt/driver/x11/X11Display.java
index 86fd8df40..a48689097 100644
--- a/src/newt/classes/jogamp/newt/driver/x11/X11Display.java
+++ b/src/newt/classes/jogamp/newt/driver/x11/X11Display.java
@@ -65,12 +65,12 @@ public class X11Display extends DisplayImpl {
}
protected void createNativeImpl() {
- long handle = X11Util.createDisplay(name);
+ long handle = X11Util.openDisplay(name);
if( 0 == handle ) {
throw new RuntimeException("Error creating display(Win): "+name);
}
if(USE_SEPARATE_DISPLAY_FOR_EDT) {
- edtDisplayHandle = X11Util.createDisplay(name);
+ edtDisplayHandle = X11Util.openDisplay(name);
if( 0 == edtDisplayHandle ) {
X11Util.closeDisplay(handle);
throw new RuntimeException("Error creating display(EDT): "+name);
diff --git a/src/newt/classes/jogamp/newt/driver/x11/X11Screen.java b/src/newt/classes/jogamp/newt/driver/x11/X11Screen.java
index 63fa46c9c..5655ef0c7 100644
--- a/src/newt/classes/jogamp/newt/driver/x11/X11Screen.java
+++ b/src/newt/classes/jogamp/newt/driver/x11/X11Screen.java
@@ -212,7 +212,7 @@ public class X11Screen extends ScreenImpl {
throw new RuntimeException("Invalid resolution index: ! 0 < "+resIdx+" < "+resNumber+", screenMode["+screenModeIdx+"] "+screenMode);
}
- long dpy = X11Util.createDisplay(display.getName());
+ long dpy = X11Util.openDisplay(display.getName());
if( 0 == dpy ) {
throw new RuntimeException("Error creating display: "+display.getName());
}