summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-10-09 16:57:21 +0200
committerPierre Ossman <ossman@cendio.se>2014-10-09 16:57:21 +0200
commit9b6d80dbd1cb5c6d1a4e4b896c0a898dadc831b2 (patch)
tree13787a4f1f34e9413a0d0f4dac1fe9e0131b1d67
parent86a01b0052667f3dc463ca82a10f4d76bf76da85 (diff)
downloadtigervnc-9b6d80dbd1cb5c6d1a4e4b896c0a898dadc831b2.tar.gz
tigervnc-9b6d80dbd1cb5c6d1a4e4b896c0a898dadc831b2.zip
Wrong padding size calculated (copy-paste error)
-rw-r--r--common/rfb/PixelFormat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/PixelFormat.cxx b/common/rfb/PixelFormat.cxx
index 9ec6b469..76051dc4 100644
--- a/common/rfb/PixelFormat.cxx
+++ b/common/rfb/PixelFormat.cxx
@@ -260,7 +260,7 @@ void PixelFormat::bufferFromRGB(rdr::U8 *dst, const rdr::U8* src,
}
} else {
// Generic code
- int dstPad = (stride - w) * 4;
+ int dstPad = (stride - w) * bpp/8;
while (h--) {
int w_ = w;
while (w_--) {