From: Pierre Ossman Date: Thu, 9 Oct 2014 14:57:21 +0000 (+0200) Subject: Wrong padding size calculated (copy-paste error) X-Git-Tag: v1.3.90~23^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F46%2Fhead;p=tigervnc.git Wrong padding size calculated (copy-paste error) --- 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_--) {