diff options
author | Sven Gothel <[email protected]> | 2011-08-01 15:17:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-01 15:17:20 +0200 |
commit | cb2c6e42963a018bdb73b55d4964c8abca7569d1 (patch) | |
tree | 61121ea4d816d35c4def0b8ffd7b78f6607be631 /src/newt | |
parent | 4d33a2df1e991ab75817dcb44061d88d3c499cdb (diff) |
Refine some DEBUG code (verbosity)
Diffstat (limited to 'src/newt')
-rw-r--r-- | src/newt/classes/jogamp/newt/x11/X11Window.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/newt/classes/jogamp/newt/x11/X11Window.java b/src/newt/classes/jogamp/newt/x11/X11Window.java index 8f9455629..9934d4b7a 100644 --- a/src/newt/classes/jogamp/newt/x11/X11Window.java +++ b/src/newt/classes/jogamp/newt/x11/X11Window.java @@ -50,10 +50,14 @@ public class X11Window extends WindowImpl { } protected void createNativeImpl() { - X11Screen screen = (X11Screen) getScreen(); - X11Display display = (X11Display) screen.getDisplay(); - config = GraphicsConfigurationFactory.getFactory(display.getGraphicsDevice()).chooseGraphicsConfiguration( + final X11Screen screen = (X11Screen) getScreen(); + final X11Display display = (X11Display) screen.getDisplay(); + final GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(display.getGraphicsDevice()); + config = factory.chooseGraphicsConfiguration( capsRequested, capsRequested, capabilitiesChooser, screen.getGraphicsScreen()); + if(DEBUG_IMPLEMENTATION) { + System.err.println("X11Window.createNativeImpl() factory: "+factory+", chosen config: "+config); + } if (config == null) { throw new NativeWindowException("Error choosing GraphicsConfiguration creating window: "+this); } |