]> source.dussan.org Git - tigervnc.git/commitdiff
Needs to be true colour to be 888.
authorPierre Ossman <ossman@cendio.se>
Wed, 25 Mar 2009 12:27:38 +0000 (12:27 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 25 Mar 2009 12:27:38 +0000 (12:27 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3720 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/PixelFormat.cxx

index 4221e448861b284f7c34d20840b3da5627809443..e8cb1a2128a5d3df8340e0333e0e12e90b62031b 100644 (file)
@@ -102,6 +102,8 @@ void PixelFormat::write(rdr::OutStream* os) const
 
 bool PixelFormat::is888(void) const
 {
+  if (!trueColour)
+    return false;
   if (bpp != 32)
     return false;
   if (depth != 24)