diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-11-10 12:37:39 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-11-10 12:37:39 +0000 |
commit | 939dcd11f8284a3601ca1e371bfb20b3d2ea44ba (patch) | |
tree | fee6fddb4bc96708dee0ce065992093a03fc4537 /common | |
parent | 77b50285e1af3cef1795cba9485e73fc31d04443 (diff) | |
download | tigervnc-939dcd11f8284a3601ca1e371bfb20b3d2ea44ba.tar.gz tigervnc-939dcd11f8284a3601ca1e371bfb20b3d2ea44ba.zip |
The CopyRect encoding is very efficient so it is wasteful to check those
areas here. It also makes the CUT counter-productive in some cases as it
tends to expand small changes to BLOCK_SIZE (16 pixels) because of the copy
regions.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4788 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/ComparingUpdateTracker.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/rfb/ComparingUpdateTracker.cxx b/common/rfb/ComparingUpdateTracker.cxx index cd579a8e..42a9e192 100644 --- a/common/rfb/ComparingUpdateTracker.cxx +++ b/common/rfb/ComparingUpdateTracker.cxx @@ -58,14 +58,12 @@ void ComparingUpdateTracker::compare() for (i = rects.begin(); i != rects.end(); i++) oldFb.copyRect(*i, copy_delta); - Region to_check = changed.union_(copied); - to_check.get_rects(&rects); + changed.get_rects(&rects); Region newChanged; for (i = rects.begin(); i != rects.end(); i++) compareRect(*i, &newChanged); - copied.assign_subtract(newChanged); changed = newChanged; } } |