aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/ScaledPixelBuffer.cxx
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-11-05 16:33:09 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-11-05 16:33:09 +0000
commit64379b01f7555f664b74b36e130147ff1aaf0133 (patch)
treed067c4a2be28f057fd27ba64cf83ea33c48d99e1 /common/rfb/ScaledPixelBuffer.cxx
parent3e111537b52590b001ee60afb7a38d1f7a8632b1 (diff)
downloadtigervnc-64379b01f7555f664b74b36e130147ff1aaf0133.tar.gz
tigervnc-64379b01f7555f664b74b36e130147ff1aaf0133.zip
Small code improvements - added check for scale buffer in ScaledPixelBuffer::setScaleFilter().
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2367 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/ScaledPixelBuffer.cxx')
-rw-r--r--common/rfb/ScaledPixelBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ScaledPixelBuffer.cxx b/common/rfb/ScaledPixelBuffer.cxx
index e45274e4..cd373387 100644
--- a/common/rfb/ScaledPixelBuffer.cxx
+++ b/common/rfb/ScaledPixelBuffer.cxx
@@ -111,7 +111,7 @@ void ScaledPixelBuffer::setScaleFilter(unsigned int scaleFilterID_) {
freeWeightTabs();
scaleFilters.makeWeightTabs(scaleFilterID, src_width, scaled_width, &xWeightTabs);
scaleFilters.makeWeightTabs(scaleFilterID, src_height, scaled_height, &yWeightTabs);
- if (scale != 100 && pf.depth > 0) scaleRect(Rect(0, 0, src_width, src_height));
+ if (scale != 100 && pf.depth > 0 && scaled_data) scaleRect(Rect(0, 0, src_width, src_height));
}
}