diff options
Diffstat (limited to 'src/nativewindow/classes/com')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java b/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java index b10b12128..c750f7651 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java @@ -114,9 +114,9 @@ public class SWTAccessor { private static VersionNumber GTK_VERSION(final int version) { // return (major << 16) + (minor << 8) + micro; - final int micro = ( version ) & 0x0f; - final int minor = ( version >> 8 ) & 0x0f; - final int major = ( version >> 16 ) & 0x0f; + final int micro = ( version ) & 0xff; + final int minor = ( version >> 8 ) & 0xff; + final int major = ( version >> 16 ) & 0xff; return new VersionNumber(major, minor, micro); } |