From fa3c55b8176b284752ed14a5a24f7fee36e588a3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 26 Sep 2015 03:41:39 +0200 Subject: Bug 1188: Fix setMaximized(..) isReconfigureMaskSupported(..) query setMaximized(..) isReconfigureMaskSupported(..) was using the state bit-number instead of the state bit-mask! Fixed. --- src/newt/classes/jogamp/newt/WindowImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newt/classes/jogamp') 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; } } -- cgit v1.2.3