Handling VideoRectangleSelection protocol message (TightVNC extension).
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2585 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index dc6c709..066feb9 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -555,3 +555,22 @@
}
}
}
+
+void VNCServerST::setVideoRectangle(const Rect& r)
+{
+ if (isVideoSelectionEnabled()) {
+ // FIXME: Duplication between m_videoRect and comparer->video_area.
+ m_videoRect = r;
+ set_video_area(m_videoRect);
+ }
+}
+
+void VNCServerST::unsetVideoRectangle()
+{
+ if (isVideoSelectionEnabled()) {
+ // FIXME: Duplication between m_videoRect and comparer->video_area.
+ m_videoRect.clear();
+ set_video_area(m_videoRect);
+ }
+}
+