diff options
author | Sven Gothel <[email protected]> | 2015-09-26 03:41:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-09-26 03:41:39 +0200 |
commit | fa3c55b8176b284752ed14a5a24f7fee36e588a3 (patch) | |
tree | 7092ca5bdf11e57e0b5f4da698e4173e20212281 /src/newt/classes | |
parent | 10ad1270e7b8f821ef9bb3612669342c7dc56586 (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/newt/classes')
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 4 |
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; } } |