diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-03-20 10:54:38 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-03-20 10:54:38 +0000 |
commit | c4eb6262e62defefd076c7080b3aa3d48446b09d (patch) | |
tree | 75b867217f2f82a25c7136182d1083dd31b41099 /win/vncviewer | |
parent | 486740f17ae8611091c86f054a62333e6e5a4876 (diff) | |
download | tigervnc-c4eb6262e62defefd076c7080b3aa3d48446b09d.tar.gz tigervnc-c4eb6262e62defefd076c7080b3aa3d48446b09d.zip |
Added the routines for manipulation the scale filter method. It allow change the
scale filter.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2241 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/vncviewer')
-rw-r--r-- | win/vncviewer/DesktopWindow.cxx | 6 | ||||
-rw-r--r-- | win/vncviewer/DesktopWindow.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx index 31018d12..75437070 100644 --- a/win/vncviewer/DesktopWindow.cxx +++ b/win/vncviewer/DesktopWindow.cxx @@ -1024,6 +1024,12 @@ void DesktopWindow::setDesktopScale(int scale_) { InvalidateRect(frameHandle, 0, FALSE); } +void DesktopWindow::setDesktopScaleFilter(unsigned int scaleFilterID) { + if (scaleFilterID == getDesktopScaleFilterID() || scaleFilterID > scaleFilterMaxNumber) return; + buffer->setScaleFilter(scaleFilterID); + InvalidateRect(frameHandle, 0, FALSE); +} + void DesktopWindow::convertCursorToBuffer() { if (memcmp(&(cursor.getPF()), &(buffer->getPF()), sizeof(PixelBuffer)) == 0) return; internalSetCursor = true; diff --git a/win/vncviewer/DesktopWindow.h b/win/vncviewer/DesktopWindow.h index 94f361de..4319b752 100644 --- a/win/vncviewer/DesktopWindow.h +++ b/win/vncviewer/DesktopWindow.h @@ -90,6 +90,8 @@ namespace rfb { bool isAutoScaling() const { return autoScaling; } void setDesktopScale(int scale); int getDesktopScale() const { return buffer->getScale(); } + void setDesktopScaleFilter(unsigned int scaleFilterID); + unsigned int getDesktopScaleFilterID() const { return buffer->getScaleFilterID(); } void fitBufferToWindow(bool repaint = true); void printScale(); |