aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/ScaledDIBSectionBuffer.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-06-01 11:53:49 +0000
committerPierre Ossman <ossman@cendio.se>2009-06-01 11:53:49 +0000
commit1747751e9a084e1772317e06b3cab41a30d9e68e (patch)
treedf0b692c7a13cbdaa86af296c6c8713fb6b2c201 /win/rfb_win32/ScaledDIBSectionBuffer.cxx
parent03ed4807aa9708b70f3bdf6a8c7dc678251e0769 (diff)
downloadtigervnc-1747751e9a084e1772317e06b3cab41a30d9e68e.tar.gz
tigervnc-1747751e9a084e1772317e06b3cab41a30d9e68e.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/trunk@3829 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/rfb_win32/ScaledDIBSectionBuffer.cxx')
-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;
}
}