summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-26 03:41:39 +0200
committerSven Gothel <[email protected]>2015-09-26 03:41:39 +0200
commitfa3c55b8176b284752ed14a5a24f7fee36e588a3 (patch)
tree7092ca5bdf11e57e0b5f4da698e4173e20212281 /src
parent10ad1270e7b8f821ef9bb3612669342c7dc56586 (diff)
Bug 1188: Fix setMaximized(..) isReconfigureMaskSupported(..) query
setMaximized(..) isReconfigureMaskSupported(..) was using the state bit-number instead of the state bit-mask! Fixed.
Diffstat (limited to 'src')
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index 6daca16c3..defcc515f 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -2213,10 +2213,10 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
@Override
public final void setMaximized(boolean horz, boolean vert) {
if( isNativeValid() ) {
- if( horz && !isReconfigureMaskSupported(STATE_BIT_MAXIMIZED_HORZ) ) {
+ if( horz && !isReconfigureMaskSupported(STATE_MASK_MAXIMIZED_HORZ) ) {
horz = false;
}
- if( vert && !isReconfigureMaskSupported(STATE_BIT_MAXIMIZED_VERT) ) {
+ if( vert && !isReconfigureMaskSupported(STATE_MASK_MAXIMIZED_VERT) ) {
vert = false;
}
}