summaryrefslogtreecommitdiffstats
path: root/common/rfb/ComparingUpdateTracker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/ComparingUpdateTracker.cxx')
-rw-r--r--common/rfb/ComparingUpdateTracker.cxx4
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;
}
}