summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-08-11 05:37:38 +0200
committerSven Gothel <[email protected]>2015-08-11 05:37:38 +0200
commit858ea4570f124aae2d302a78161c72f7ac41e5b3 (patch)
tree4f86a8dc205a2d508aa04d98341b94d0470a1f53 /src/newt/classes/jogamp
parent3ac9eca843d119902a65fdeee5456d204fbabfa4 (diff)
NEWY WindowImpl appendStateBits(..): Refine maximized; Refine WindowDriver's reconfig DEBUG
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java15
-rw-r--r--src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java2
-rw-r--r--src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java2
-rw-r--r--src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java2
4 files changed, 14 insertions, 7 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index ee6072ae9..241192c6c 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -349,23 +349,30 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
}
if( showChangeFlags && 0 != ( ( CHANGE_MASK_MAXIMIZED_HORZ | CHANGE_MASK_MAXIMIZED_VERT ) & mask) ) {
- sb.append("max=");
+ sb.append("max[");
if( 0 != ( STATE_MASK_MAXIMIZED_HORZ & mask) ) {
+ if( 0 != ( CHANGE_MASK_MAXIMIZED_HORZ & mask) ) {
+ sb.append("*");
+ }
sb.append("h");
+ sb.append(", ");
}
if( 0 != ( STATE_MASK_MAXIMIZED_VERT & mask) ) {
+ if( 0 != ( CHANGE_MASK_MAXIMIZED_VERT & mask) ) {
+ sb.append("*");
+ }
sb.append("v");
}
- sb.append(", ");
+ sb.append("], ");
} else if( 0 != ( ( STATE_MASK_MAXIMIZED_HORZ | STATE_MASK_MAXIMIZED_VERT ) & mask) ) {
- sb.append("max=");
+ sb.append("max[");
if( 0 != ( STATE_MASK_MAXIMIZED_HORZ & mask) ) {
sb.append("h");
}
if( 0 != ( STATE_MASK_MAXIMIZED_VERT & mask) ) {
sb.append("v");
}
- sb.append(", ");
+ sb.append("], ");
}
if( showChangeFlags && 0 != ( CHANGE_MASK_FULLSCREEN & mask) ) {
diff --git a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java
index 384c211f4..f54b8b2c6 100644
--- a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java
+++ b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java
@@ -453,7 +453,7 @@ public class WindowDriver extends WindowImpl implements MutableSurface, DriverCl
final NativeWindow pWin = getParent();
final AbstractGraphicsConfiguration pWinCfg = null != pWin ? pWin.getGraphicsConfiguration() : null;
System.err.println("MacWindow reconfig.0: "+x+"/"+y+" -> clientPos "+pClientLevelOnSreen+" - "+width+"x"+height+
- ", "+getStateMaskString()+" -> "+getReconfigStateMaskString(flags)+
+ ", "+getReconfigStateMaskString(flags)+
",\n\t parent type "+(null != pWin ? pWin.getClass().getName() : null)+
",\n\t this-chosenCaps "+(null != cWinCfg ? cWinCfg.getChosenCapabilities() : null)+
",\n\t parent-chosenCaps "+(null != pWinCfg ? pWinCfg.getChosenCapabilities() : null)+
diff --git a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java
index 1b387f53c..6f2660358 100644
--- a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java
+++ b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java
@@ -191,7 +191,7 @@ public class WindowDriver extends WindowImpl {
protected boolean reconfigureWindowImpl(int x, int y, int width, int height, final int flags) {
if(DEBUG_IMPLEMENTATION) {
System.err.println("WindowsWindow reconfig.0: "+x+"/"+y+" "+width+"x"+height+
- ", "+getStateMaskString()+" -> "+getReconfigStateMaskString(flags));
+ ", "+getReconfigStateMaskString(flags));
}
if(0 == ( STATE_MASK_UNDECORATED & flags)) {
diff --git a/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java
index 6d1326a6d..d0026deaf 100644
--- a/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java
+++ b/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java
@@ -196,7 +196,7 @@ public class WindowDriver extends WindowImpl {
}
if(DEBUG_IMPLEMENTATION) {
System.err.println("X11Window reconfig.0: "+x+"/"+y+" -> "+_x+"/"+_y+" "+width+"x"+height+", insets "+_insets+
- ", "+getStateMaskString()+" -> "+getReconfigStateMaskString(flags));
+ ", "+getReconfigStateMaskString(flags));
}
if( 0 != ( CHANGE_MASK_FULLSCREEN & flags ) ) {
if( 0 != ( STATE_MASK_FULLSCREEN & flags) &&