Revision: 4471
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4471&view=rev
Author: ossman_
Date: 2011-06-08 16:58:19 +0000 (Wed, 08 Jun 2011)
Log Message:
-----------
Accidentally calculated the pointer offset twice, resulting in segfaults.
Make sure we get the proper address for the data shuffling.
Modified Paths:
--------------
trunk/common/rfb/TransImageGetter.cxx
Modified: trunk/common/rfb/TransImageGetter.cxx
===================================================================
--- trunk/common/rfb/TransImageGetter.cxx 2011-06-07 04:51:57 UTC (rev
4470)
+++ trunk/common/rfb/TransImageGetter.cxx 2011-06-08 16:58:19 UTC (rev
4471)
@@ -62,7 +62,8 @@
if (!outStride) outStride = r.width();
- translateRect((void*)inPtr, inStride, r, outPtr, outStride, r.tl);
+ translateRect((void*)inPtr, inStride, Rect(0, 0, r.width(), r.height()),
+ outPtr, outStride, Point(0, 0));
}
void TransImageGetter::cmCallback(int firstColour, int nColours,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits