aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-11-05 11:22:14 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-11-05 11:22:14 +0000
commitc79c7bb5b3c87908ae5a1c93fc8d1c6e9aa9d474 (patch)
tree755bee6a272253a216dff50cf50fa1e8fbdbd481 /win
parent3a1982ec933f268d68bf6840d4f30907acb92322 (diff)
downloadtigervnc-c79c7bb5b3c87908ae5a1c93fc8d1c6e9aa9d474.tar.gz
tigervnc-c79c7bb5b3c87908ae5a1c93fc8d1c6e9aa9d474.zip
Added the improvements of the ScaledPixelBuffer class - increased scaled image quality when scale < 100%.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2365 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win')
-rw-r--r--win/rfb_win32/ScaledDIBSectionBuffer.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/win/rfb_win32/ScaledDIBSectionBuffer.cxx b/win/rfb_win32/ScaledDIBSectionBuffer.cxx
index f607d348..efa27a0b 100644
--- a/win/rfb_win32/ScaledDIBSectionBuffer.cxx
+++ b/win/rfb_win32/ScaledDIBSectionBuffer.cxx
@@ -41,18 +41,9 @@ ScaledDIBSectionBuffer::~ScaledDIBSectionBuffer() {
void ScaledDIBSectionBuffer::setScale(int scale_) {
if (scale == scale_ || scale_ <= 0) return;
-
- scale = scale_;
+ ScaledPixelBuffer::setScale(scale_);
if (scale == 100) scaling = false;
else scaling = true;
-
- // FIXME:
- // Calculate the scale weight tabs must be in the ScalePixelBuffer class
- freeWeightTabs();
- calculateScaledBufferSize();
- scaleFilters.makeWeightTabs(scaleFilterID, src_width, scaled_width, &xWeightTabs);
- scaleFilters.makeWeightTabs(scaleFilterID, src_height, scaled_height, &yWeightTabs);
-
recreateBuffers();
}