From: Pierre Ossman Date: Mon, 1 Jun 2009 11:52:48 +0000 (+0000) Subject: DIBSectionBuffer can modify the pixel format so we need to read it back to X-Git-Tag: v0.0.91~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a384ca387728c3be4d05def02fcf153b25780513;p=tigervnc.git DIBSectionBuffer can modify the pixel format so we need to read it back to make sure everything is synchronized. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3828 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/win/rfb_win32/ScaledDIBSectionBuffer.cxx b/win/rfb_win32/ScaledDIBSectionBuffer.cxx index 4e0557f4..752cd784 100644 --- a/win/rfb_win32/ScaledDIBSectionBuffer.cxx +++ b/win/rfb_win32/ScaledDIBSectionBuffer.cxx @@ -66,6 +66,7 @@ void ScaledDIBSectionBuffer::setPF(const PixelFormat &pf_) { } } else { DIBSectionBuffer::setPF(pf); + pf = format; } }