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/trunk@3829 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/rfb_win32/ScaledDIBSectionBuffer.cxx b/win/rfb_win32/ScaledDIBSectionBuffer.cxx
index 4e0557f..752cd78 100644
--- a/win/rfb_win32/ScaledDIBSectionBuffer.cxx
+++ b/win/rfb_win32/ScaledDIBSectionBuffer.cxx
@@ -66,6 +66,7 @@
}
} else {
DIBSectionBuffer::setPF(pf);
+ pf = format;
}
}