Author: tkreuzer
Date: Wed Dec 31 15:15:39 2014
New Revision: 65918

URL: http://svn.reactos.org/svn/reactos?rev=65918&view=rev
Log:
[WIN32K]
Fix calculation of the source point in EngCopyBits for complex clipping 
regions. One might assume that this function is so essential, that it would do 
at least the most basic stuff correctly, but ...

Modified:
    trunk/reactos/win32ss/gdi/eng/copybits.c

Modified: trunk/reactos/win32ss/gdi/eng/copybits.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/copybits.c?rev=65918&r1=65917&r2=65918&view=diff
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/copybits.c    [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/copybits.c    [iso-8859-1] Wed Dec 31 
15:15:39 2014
@@ -146,8 +146,8 @@
                     {
                         RECTL_bIntersectRect(&BltInfo.DestRect, prcl, 
DestRect);
 
-                        BltInfo.SourcePoint.x = SourcePoint->x + prcl->left - 
DestRect->left;
-                        BltInfo.SourcePoint.y = SourcePoint->y + prcl->top - 
DestRect->top;
+                        BltInfo.SourcePoint.x = SourcePoint->x + 
BltInfo.DestRect.left - DestRect->left;
+                        BltInfo.SourcePoint.y = SourcePoint->y + 
BltInfo.DestRect.top - DestRect->top;
 
                         if 
(!DibFunctionsForBitmapFormat[psoDest->iBitmapFormat].DIB_BitBltSrcCopy(&BltInfo))
                         {


Reply via email to