summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-06-01 11:52:48 +0000
committerPierre Ossman <ossman@cendio.se>2009-06-01 11:52:48 +0000
commita384ca387728c3be4d05def02fcf153b25780513 (patch)
treedf0b692c7a13cbdaa86af296c6c8713fb6b2c201
parent137abd38804e70c2abe05ee724dd7605ad8b97ed (diff)
downloadtigervnc-a384ca387728c3be4d05def02fcf153b25780513.tar.gz
tigervnc-a384ca387728c3be4d05def02fcf153b25780513.zip
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
-rw-r--r--win/rfb_win32/ScaledDIBSectionBuffer.cxx1
1 files changed, 1 insertions, 0 deletions
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;
}
}