summaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-03-25 12:27:38 +0000
committerPierre Ossman <ossman@cendio.se>2009-03-25 12:27:38 +0000
commit6ba9e1ae27d2ddd5026ced5c3fe479be982fdb32 (patch)
treeee128d1fed5204c214aa38d82b18d8ed5c803a46 /common/rfb
parent38a6be484babd3a67e07e22c6fdd95e1c99fbe0c (diff)
downloadtigervnc-6ba9e1ae27d2ddd5026ced5c3fe479be982fdb32.tar.gz
tigervnc-6ba9e1ae27d2ddd5026ced5c3fe479be982fdb32.zip
Needs to be true colour to be 888.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3720 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/PixelFormat.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/rfb/PixelFormat.cxx b/common/rfb/PixelFormat.cxx
index 4221e448..e8cb1a21 100644
--- a/common/rfb/PixelFormat.cxx
+++ b/common/rfb/PixelFormat.cxx
@@ -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)