diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2006-09-23 07:17:20 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2006-09-23 07:17:20 +0000 |
commit | aab5bc0ee241f387d4bc3d5f97498267be6c87f4 (patch) | |
tree | f656aba7ee87a19122f7800b77f05ed1293113f8 /win/rfb_win32 | |
parent | 7c721ccdea88c10ef4c6500cb06cca0031fccdd8 (diff) | |
download | tigervnc-aab5bc0ee241f387d4bc3d5f97498267be6c87f4.tar.gz tigervnc-aab5bc0ee241f387d4bc3d5f97498267be6c87f4.zip |
Timely added check for unsupported pixel format.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2104 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/rfb_win32')
-rw-r--r-- | win/rfb_win32/ScaledDIBSectionBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rfb_win32/ScaledDIBSectionBuffer.cxx b/win/rfb_win32/ScaledDIBSectionBuffer.cxx index 20d0f89a..3b0f3f7e 100644 --- a/win/rfb_win32/ScaledDIBSectionBuffer.cxx +++ b/win/rfb_win32/ScaledDIBSectionBuffer.cxx @@ -51,7 +51,7 @@ void ScaledDIBSectionBuffer::setScaleRatio(double scale_ratio_) { void ScaledDIBSectionBuffer::setPF(const PixelFormat &pf_) { if (memcmp(&(ScaledPixelBuffer::pf), &pf_, sizeof(pf_)) == 0) return; - if (!pf_.trueColour) throw rfb::UnsupportedPixelFormatException(); + if (pf_.depth != 24) throw rfb::UnsupportedPixelFormatException(); pf = pf_; if (scaling) { |