diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-10-09 16:57:21 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-10-09 16:57:21 +0200 |
commit | 9b6d80dbd1cb5c6d1a4e4b896c0a898dadc831b2 (patch) | |
tree | 13787a4f1f34e9413a0d0f4dac1fe9e0131b1d67 /common/rfb/PixelFormat.cxx | |
parent | 86a01b0052667f3dc463ca82a10f4d76bf76da85 (diff) | |
download | tigervnc-9b6d80dbd1cb5c6d1a4e4b896c0a898dadc831b2.tar.gz tigervnc-9b6d80dbd1cb5c6d1a4e4b896c0a898dadc831b2.zip |
Wrong padding size calculated (copy-paste error)
Diffstat (limited to 'common/rfb/PixelFormat.cxx')
-rw-r--r-- | common/rfb/PixelFormat.cxx | 2 |
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_--) { |