diff options
author | Sven Gothel <[email protected]> | 2011-08-31 15:48:50 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-31 15:48:50 +0200 |
commit | dde3b106c9c4a8086982546c27d74de7dcd824eb (patch) | |
tree | 61ef93d7f77f9fec2fdb39d84ed87dd65df97abd /src/newt/classes/jogamp | |
parent | 013e8ed7a90b026410468848b6b627e77c232f86 (diff) |
X11Util.createDisplay() -> X11Util.openDisplay(): Better name match to XOpenDisplay/XCloseDisplay
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/x11/X11Display.java | 4 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/x11/X11Screen.java | 2 |
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()); } |