]> source.dussan.org Git - tigervnc.git/commitdiff
DIBSectionBuffer can modify the pixel format so we need to read it back to
authorPierre Ossman <ossman@cendio.se>
Mon, 1 Jun 2009 11:53:49 +0000 (11:53 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 1 Jun 2009 11:53:49 +0000 (11:53 +0000)
make sure everything is synchronized.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3829 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/ScaledDIBSectionBuffer.cxx

index 4e0557f4f19a634d5d2803ce9b6eeb38dd63247c..752cd78434b9714c730269659d7a0f98aea845a0 100644 (file)
@@ -66,6 +66,7 @@ void ScaledDIBSectionBuffer::setPF(const PixelFormat &pf_) {
     }
   } else {
     DIBSectionBuffer::setPF(pf);
+    pf = format;
   }
 }