diff options
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/DisplayImpl.java | 8 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/awt/AWTWindow.java | 2 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/windows/WindowsWindow.java | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/newt/classes/jogamp/newt/DisplayImpl.java b/src/newt/classes/jogamp/newt/DisplayImpl.java index 26c437b4d..ddb409338 100644 --- a/src/newt/classes/jogamp/newt/DisplayImpl.java +++ b/src/newt/classes/jogamp/newt/DisplayImpl.java @@ -381,8 +381,12 @@ public abstract class DisplayImpl extends Display { public void dispatchMessages() { // System.err.println("Display.dispatchMessages() 0 "+this+" "+getThreadName()); - if(0==refCount) return; // no screens - if(null==getGraphicsDevice()) return; // no native device + if(0==refCount || // no screens + null==getGraphicsDevice() // no native device + ) + { + return; + } ArrayList<NEWTEventTask> _events = null; diff --git a/src/newt/classes/jogamp/newt/driver/awt/AWTWindow.java b/src/newt/classes/jogamp/newt/driver/awt/AWTWindow.java index 4ab12bbc8..531b8d2a8 100644 --- a/src/newt/classes/jogamp/newt/driver/awt/AWTWindow.java +++ b/src/newt/classes/jogamp/newt/driver/awt/AWTWindow.java @@ -184,7 +184,7 @@ public class AWTWindow extends WindowImpl { if(!container.isDisplayable()) { frame.setUndecorated(isUndecorated()); } else { - if(DEBUG_IMPLEMENTATION || DEBUG_WINDOW_EVENT) { + if(DEBUG_IMPLEMENTATION) { System.err.println("AWTWindow can't undecorate already created frame"); } } diff --git a/src/newt/classes/jogamp/newt/driver/windows/WindowsWindow.java b/src/newt/classes/jogamp/newt/driver/windows/WindowsWindow.java index 1b33900a4..a78014468 100644 --- a/src/newt/classes/jogamp/newt/driver/windows/WindowsWindow.java +++ b/src/newt/classes/jogamp/newt/driver/windows/WindowsWindow.java @@ -84,7 +84,7 @@ public class WindowsWindow extends WindowImpl { if(0!=getWindowHandle()) { long _hmon = MonitorFromWindow0(getWindowHandle()); if (hmon != _hmon) { - if(DEBUG_IMPLEMENTATION || DEBUG_WINDOW_EVENT) { + if(DEBUG_IMPLEMENTATION) { Exception e = new Exception("Info: Window Device Changed "+Thread.currentThread().getName()+ ", HMON "+toHexString(hmon)+" -> "+toHexString(_hmon)); e.printStackTrace(); |