diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-04-30 13:28:54 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-04-30 13:28:54 +0000 |
commit | bfd8ecddec2f0263140e07ae173a3857f7db0e02 (patch) | |
tree | ac518a006ce98292f017c0eec2da158780b11917 /common/rfb/ScaledPixelBuffer.cxx | |
parent | 6e7755a63d92e965c330e85ab4a21cb8424b51ad (diff) | |
download | tigervnc-bfd8ecddec2f0263140e07ae173a3857f7db0e02.tar.gz tigervnc-bfd8ecddec2f0263140e07ae173a3857f7db0e02.zip |
Now implemented manage the scale filters from the vncviewer options dialog.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2291 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/ScaledPixelBuffer.cxx')
-rw-r--r-- | common/rfb/ScaledPixelBuffer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/ScaledPixelBuffer.cxx b/common/rfb/ScaledPixelBuffer.cxx index 35d5d3b1..c30e93de 100644 --- a/common/rfb/ScaledPixelBuffer.cxx +++ b/common/rfb/ScaledPixelBuffer.cxx @@ -91,11 +91,11 @@ void ScaledPixelBuffer::setScaleFilter(unsigned int scaleFilterID_) { scaleFilterID = scaleFilterID_; - if (src_width && src_height && scaled_width && scaled_height && pf.depth > 0) { + if (src_width && src_height && scaled_width && scaled_height) { freeWeightTabs(); scaleFilters.makeWeightTabs(scaleFilterID, src_width, scaled_width, &xWeightTabs); scaleFilters.makeWeightTabs(scaleFilterID, src_height, scaled_height, &yWeightTabs); - if (scale != 100) scaleRect(Rect(0, 0, src_width, src_height)); + if (scale != 100 && pf.depth > 0) scaleRect(Rect(0, 0, src_width, src_height)); } } |