diff options
Diffstat (limited to 'win')
-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(); |