aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win/vncviewer/DesktopWindow.cxx')
-rw-r--r--win/vncviewer/DesktopWindow.cxx6
1 files changed, 6 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;