diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/demos/misc/Picking.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/misc/Picking.java b/src/demos/misc/Picking.java index 472ed95..5c55272 100755 --- a/src/demos/misc/Picking.java +++ b/src/demos/misc/Picking.java @@ -133,8 +133,8 @@ public class Picking System.out.println("- - - - - - - - - - - -"); System.out.println(" hit: " + (i + 1)); names = buffer.get(offset); offset++; - z1 = (float) buffer.get(offset) / 0x7fffffff; offset++; - z2 = (float) buffer.get(offset) / 0x7fffffff; offset++; + z1 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++; + z2 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++; System.out.println(" number of names: " + names); System.out.println(" z1: " + z1); System.out.println(" z2: " + z2); |