Don't forget the highest byte when reading out pixels.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3641 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/PixelFormat.inl b/common/rfb/PixelFormat.inl
index faffc65..d5edfa5 100644
--- a/common/rfb/PixelFormat.inl
+++ b/common/rfb/PixelFormat.inl
@@ -39,8 +39,10 @@
p |= buffer[0];
if (bpp >= 16) {
p |= ((Pixel)buffer[1]) << 8;
- if (bpp == 32)
+ if (bpp == 32) {
p |= ((Pixel)buffer[2]) << 16;
+ p |= ((Pixel)buffer[3]) << 24;
+ }
}
}