summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-07-17 21:32:38 +0200
committerSven Gothel <[email protected]>2015-07-17 21:32:38 +0200
commit15a0c5fe29fb6319b02b435674d60b0f7620f9ab (patch)
tree4596687993cf2e56f1a8ca588e0accb977403fc6
parent51268bc9874de7cc34dfe7741187238f7d46aafc (diff)
parent179222835fae0cc93b20aef2f877f47c9626f15a (diff)
Merge branch 'Bug1170' of https://github.com/rhatcher/jogl
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java6
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);
}