summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-06 16:19:31 +0200
committerSven Gothel <[email protected]>2011-09-06 16:19:31 +0200
commit9c316a0f015bf0ce519fa7abf62f52e3aa21f701 (patch)
tree4d2d709daa64bac6352c9cd54f51e79de8780b44 /src/newt/classes/jogamp
parentb9abecf078de8c1f936422f9e1fce84d7826c959 (diff)
NEWT Cleanup: Remove DEBUG_WINDOW_EVENT, ..
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/DisplayImpl.java8
-rw-r--r--src/newt/classes/jogamp/newt/driver/awt/AWTWindow.java2
-rw-r--r--src/newt/classes/jogamp/newt/driver/windows/WindowsWindow.java2
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();