summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
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;
+ }
}
}