Revision: 4228
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4228&view=rev
Author: ossman_
Date: 2010-12-21 16:00:18 +0000 (Tue, 21 Dec 2010)
Log Message:
-----------
Clean up CopyWindow hook so it's more readable.
Modified Paths:
--------------
trunk/unix/xserver/hw/vnc/vncHooks.cc
Modified: trunk/unix/xserver/hw/vnc/vncHooks.cc
===================================================================
--- trunk/unix/xserver/hw/vnc/vncHooks.cc 2010-12-21 15:53:42 UTC (rev
4227)
+++ trunk/unix/xserver/hw/vnc/vncHooks.cc 2010-12-21 16:00:18 UTC (rev
4228)
@@ -397,12 +397,16 @@
{
SCREEN_UNWRAP(pWin->drawable.pScreen, CopyWindow);
+ int dx, dy;
RegionHelper copied(pScreen, pOldRegion);
- int dx = pWin->drawable.x - ptOldOrg.x;
- int dy = pWin->drawable.y - ptOldOrg.y;
+
+ dx = pWin->drawable.x - ptOldOrg.x;
+ dy = pWin->drawable.y - ptOldOrg.y;
+
+ // RFB tracks copies in terms of destination rectangle, not source.
+ // We also need to copy with changes to the Window's clipping region.
REGION_TRANSLATE(pScreen, copied.reg, dx, dy);
- REGION_INTERSECT(pWin->drawable.pScreen, copied.reg, copied.reg,
- &pWin->borderClip);
+ REGION_INTERSECT(pScreen, copied.reg, copied.reg, &pWin->borderClip);
(*pScreen->CopyWindow) (pWin, ptOldOrg, pOldRegion);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months. Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits