[Enhancements, refactoring] Rationalized functions to control video
rectangle selection and default video rectangle. Added more logging and
improved error checking in the related code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2753 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/VNCServerST.h b/common/rfb/VNCServerST.h
index 1dd7afd..90bbeb5 100644
--- a/common/rfb/VNCServerST.h
+++ b/common/rfb/VNCServerST.h
@@ -199,13 +199,11 @@
// request, as we expect that video data is changing continuously. By
// default, this option is disabled, as it's rather a specialized feature
// and video selection GUI can confuse users of the TightVNC client.
- void enableVideoSelection(bool enable) { m_videoSelectionEnabled = enable; }
- bool isVideoSelectionEnabled() { return m_videoSelectionEnabled; }
+ void enableVideoSelection(bool enable);
+ bool isVideoSelectionEnabled() const;
void setVideoRectangle(const Rect& r);
- void unsetVideoRectangle();
-
- void setDefaultVideoRect(const Rect& r);
+ void setDefaultVideoRectangle(const Rect& r);
protected:
@@ -259,6 +257,8 @@
bool m_videoSelectionEnabled;
Rect m_videoRect;
Rect m_defaultVideoRect;
+
+ void applyVideoRectangle();
};
};