Skip to content

Commit

Permalink
OPENNITWO-433 Bug Fix: SimpleViewer.java doesn't work on depth in 100um
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiecohen committed May 8, 2013
1 parent 919fb65 commit 267bbac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void onFrameReady(VideoStream stream) {
frameData.rewind();
int pos = 0;
while(frameData.remaining() > 0) {
short depth = frameData.getShort();
int depth = (int)frameData.getShort() & 0xFFFF;
short pixel = (short)mHistogram[depth];
mImagePixels[pos] = 0xFF000000 | (pixel << 16) | (pixel << 8);
pos++;
Expand Down

0 comments on commit 267bbac

Please sign in to comment.