Author: gschneider
Date: Tue Feb 3 09:17:31 2009
New Revision: 39332
URL:
http://svn.reactos.org/svn/reactos?rev=39332&view=rev
Log:
Brush displacement fix from r39326 for 24bpp.
Modified:
trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c
Modified: trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/di…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c [iso-8859-1] Tue Feb 3 09:17:31
2009
@@ -258,7 +258,7 @@
{
if (BltInfo->PatternSurface)
{
- PatternY = (BltInfo->DestRect.top + BltInfo->BrushOrigin.y) %
+ PatternY = (BltInfo->DestRect.top - BltInfo->BrushOrigin.y) %
BltInfo->PatternSurface->sizlBitmap.cy;
}
else
@@ -281,8 +281,8 @@
}
if (BltInfo->PatternSurface)
- {
- Pattern = DIB_GetSource(BltInfo->PatternSurface, (DestX +
BltInfo->BrushOrigin.x) % BltInfo->PatternSurface->sizlBitmap.cx, PatternY,
BltInfo->XlatePatternToDest);
+ {
+ Pattern = DIB_GetSource(BltInfo->PatternSurface, (DestX -
BltInfo->BrushOrigin.x) % BltInfo->PatternSurface->sizlBitmap.cx, PatternY,
BltInfo->XlatePatternToDest);
}
Dest = DIB_DoRop(BltInfo->Rop4, Dest, Source, Pattern) & 0xFFFFFF;