summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-03-09 09:52:54 +0000
committerPierre Ossman <ossman@cendio.se>2009-03-09 09:52:54 +0000
commit67e7b29e3361005be2c1b5a9f9df4c811812e63f (patch)
treed332d035ee92b6c0335f2e69dbd6b326583b7a30 /common
parentcd66dbf8d8dc5031c34c2112aa6ff69f7d3c4b8b (diff)
downloadtigervnc-67e7b29e3361005be2c1b5a9f9df4c811812e63f.tar.gz
tigervnc-67e7b29e3361005be2c1b5a9f9df4c811812e63f.zip
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
Diffstat (limited to 'common')
-rw-r--r--common/rfb/PixelFormat.inl4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/rfb/PixelFormat.inl b/common/rfb/PixelFormat.inl
index faffc658..d5edfa55 100644
--- a/common/rfb/PixelFormat.inl
+++ b/common/rfb/PixelFormat.inl
@@ -39,8 +39,10 @@ inline Pixel PixelFormat::pixelFromBuffer(const rdr::U8* buffer) const
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;
+ }
}
}