diff options
author | Sven Gothel <[email protected]> | 2011-09-06 16:19:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-06 16:19:31 +0200 |
commit | 9c316a0f015bf0ce519fa7abf62f52e3aa21f701 (patch) | |
tree | 4d2d709daa64bac6352c9cd54f51e79de8780b44 /src/newt/classes/com/jogamp | |
parent | b9abecf078de8c1f936422f9e1fce84d7826c959 (diff) |
NEWT Cleanup: Remove DEBUG_WINDOW_EVENT, ..
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/Window.java | 1 | ||||
-rw-r--r-- | src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java index ed1cd93a9..ac8311a9a 100644 --- a/src/newt/classes/com/jogamp/newt/Window.java +++ b/src/newt/classes/com/jogamp/newt/Window.java @@ -45,7 +45,6 @@ import javax.media.nativewindow.WindowClosingProtocol; public interface Window extends NativeWindow, WindowClosingProtocol { public static final boolean DEBUG_MOUSE_EVENT = Debug.debug("Window.MouseEvent"); public static final boolean DEBUG_KEY_EVENT = Debug.debug("Window.KeyEvent"); - public static final boolean DEBUG_WINDOW_EVENT = Debug.debug("Window.WindowEvent"); public static final boolean DEBUG_IMPLEMENTATION = Debug.debug("Window"); /** A 1s timeout while waiting for a native action response, ie {@link #setVisible(boolean)}. */ diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index 9de664982..37ca7afc7 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -326,7 +326,7 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC } public synchronized void destroyActionInLock() { - if(Window.DEBUG_WINDOW_EVENT || Window.DEBUG_IMPLEMENTATION) { + if(Window.DEBUG_IMPLEMENTATION) { String msg = "GLWindow.destroy() "+Thread.currentThread()+", start"; System.err.println(msg); //Exception e1 = new Exception(msg); @@ -355,20 +355,20 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC } // helper=null; // pending events .. - if(Window.DEBUG_WINDOW_EVENT || Window.DEBUG_IMPLEMENTATION) { + if(Window.DEBUG_IMPLEMENTATION) { System.err.println("GLWindow.destroy() "+Thread.currentThread()+", fin"); } } public synchronized void resetCounter() { - if(Window.DEBUG_WINDOW_EVENT || Window.DEBUG_IMPLEMENTATION) { + if(Window.DEBUG_IMPLEMENTATION) { System.err.println("GLWindow.resetCounter() "+Thread.currentThread()); } GLWindow.this.resetFPSCounter(); } public synchronized void setVisibleActionPost(boolean visible, boolean nativeWindowCreated) { - if(Window.DEBUG_WINDOW_EVENT || Window.DEBUG_IMPLEMENTATION) { + if(Window.DEBUG_IMPLEMENTATION) { String msg = "GLWindow.setVisibleActionPost("+visible+", "+nativeWindowCreated+") "+Thread.currentThread()+", start"; System.err.println(msg); // Exception e1 = new Exception(msg); @@ -396,7 +396,7 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC context = drawable.createContext(sharedContext); context.setContextCreationFlags(additionalCtxCreationFlags); } - if(Window.DEBUG_WINDOW_EVENT || Window.DEBUG_IMPLEMENTATION) { + if(Window.DEBUG_IMPLEMENTATION) { String msg = "GLWindow.setVisibleActionPost("+visible+", "+nativeWindowCreated+") "+Thread.currentThread()+", fin"; System.err.println(msg); //Exception e1 = new Exception(msg); |