commit | 9b6d80dbd1cb5c6d1a4e4b896c0a898dadc831b2 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Thu Oct 09 16:57:21 2014 +0200 |
committer | Pierre Ossman <ossman@cendio.se> | Thu Oct 09 16:57:21 2014 +0200 |
tree | 13787a4f1f34e9413a0d0f4dac1fe9e0131b1d67 | |
parent | 86a01b0052667f3dc463ca82a10f4d76bf76da85 [diff] [blame] |
Wrong padding size calculated (copy-paste error)
diff --git a/common/rfb/PixelFormat.cxx b/common/rfb/PixelFormat.cxx index 9ec6b46..76051dc 100644 --- a/common/rfb/PixelFormat.cxx +++ b/common/rfb/PixelFormat.cxx
@@ -260,7 +260,7 @@ } } else { // Generic code - int dstPad = (stride - w) * 4; + int dstPad = (stride - w) * bpp/8; while (h--) { int w_ = w; while (w_--) {