summaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2008-12-18 12:08:15 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2008-12-18 12:08:15 +0000
commita09dc14bae453571270d0a2c4e1584a1bdb22c90 (patch)
tree9d1830ed62d887a4c449897e15a72f934c578424 /common/rfb
parentedf787ec777ca4c0e9a4f5730edd7ca7de3365f1 (diff)
downloadtigervnc-a09dc14bae453571270d0a2c4e1584a1bdb22c90.tar.gz
tigervnc-a09dc14bae453571270d0a2c4e1584a1bdb22c90.zip
[Development] Disabling special video encoding when the VideoPriority parameter is 0. In this case, video updates will be encoded similarly to normal updates.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3402 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/ServerCore.cxx3
-rw-r--r--common/rfb/VNCSConnectionST.cxx9
2 files changed, 10 insertions, 2 deletions
diff --git a/common/rfb/ServerCore.cxx b/common/rfb/ServerCore.cxx
index 6606b14c..43586171 100644
--- a/common/rfb/ServerCore.cxx
+++ b/common/rfb/ServerCore.cxx
@@ -94,8 +94,7 @@ rfb::BoolParameter rfb::Server::queryConnect
false);
// TightVNC-specific parameters
-// FIXME: Disable special video handling when this parameter is 0.
rfb::IntParameter rfb::Server::videoPriority
("VideoPriority",
- "Priority of sending updates for video area (0..8)",
+ "Priority of sending video updates (0..8)",
2, 0, 8);
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index 8c52bcbb..6bc1a91d 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -565,6 +565,15 @@ void VNCSConnectionST::writeFramebufferUpdate()
server->checkUpdate();
}
+ // If VideoPriority is 0, convert video updates to normal updates.
+
+ if (rfb::Server::videoPriority == 0) {
+ // Region videoRegion(updates.getVideoArea());
+ // updates.add_changed(videoRegion);
+ Rect nullRect(0, 0, 0, 0);
+ updates.set_video_area(nullRect);
+ }
+
// Get the lists of updates. Prior to exporting the data to the `ui' object,
// getUpdateInfo() will normalize the `updates' object such way that its
// `changed', `copied' and `video_area' regions would not intersect.