From dde3b106c9c4a8086982546c27d74de7dcd824eb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 31 Aug 2011 15:48:50 +0200 Subject: X11Util.createDisplay() -> X11Util.openDisplay(): Better name match to XOpenDisplay/XCloseDisplay --- src/newt/classes/jogamp/newt/driver/x11/X11Display.java | 4 ++-- src/newt/classes/jogamp/newt/driver/x11/X11Screen.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/newt/classes') 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()); } -- cgit v1.2.3