Revision: 4324
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4324&view=rev
Author:   astrand
Date:     2011-03-07 12:52:37 +0000 (Mon, 07 Mar 2011)

Log Message:
-----------
Avoid intersecting screen with empty clipList in vncHooksCopyArea. The
result would be empty, which means that we are not sending CopyRect
updates even though we can. Improves vertical scrolling with Firefox
and Adobe reader.

Modified Paths:
--------------
    trunk/unix/xserver/hw/vnc/vncHooks.cc

Modified: trunk/unix/xserver/hw/vnc/vncHooks.cc
===================================================================
--- trunk/unix/xserver/hw/vnc/vncHooks.cc       2011-03-04 14:41:14 UTC (rev 
4323)
+++ trunk/unix/xserver/hw/vnc/vncHooks.cc       2011-03-07 12:52:37 UTC (rev 
4324)
@@ -816,7 +816,9 @@
     box.y2 = box.y1 + h;
 
     src.init(&box, 0);
-    REGION_INTERSECT(pScreen, src.reg, src.reg, &((WindowPtr)pSrc)->clipList);
+    if (REGION_NOTEMPTY(pScreen, &((WindowPtr)pSrc)->clipList)) {
+       REGION_INTERSECT(pScreen, src.reg, src.reg, 
&((WindowPtr)pSrc)->clipList);
+    }
     REGION_TRANSLATE(pScreen, src.reg,
                      dstx + pDst->x - srcx - pSrc->x,
                      dsty + pDst->y - srcy - pSrc->y);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to