Author: gschneider
Date: Tue Feb 3 08:43:19 2009
New Revision: 39326
URL:
http://svn.reactos.org/svn/reactos?rev=39326&view=rev
Log:
Evgeny Boltik <BSTSoft AT narod DOT ru>:
Fix a brush displacement that was shown after clipping a bitblitted picture (8/16/32bpp).
Bug #4107
Modified:
trunk/reactos/tools/gendib/gendib.c
Modified: trunk/reactos/tools/gendib/gendib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/gendib/gendib.c?rev=…
==============================================================================
--- trunk/reactos/tools/gendib/gendib.c [iso-8859-1] (original)
+++ trunk/reactos/tools/gendib/gendib.c [iso-8859-1] Tue Feb 3 08:43:19 2009
@@ -529,12 +529,12 @@
{
if (0 == (Flags & FLAG_BOTTOMUP))
{
- Output(Out, "PatternY = (BltInfo->DestRect.top +
BltInfo->BrushOrigin.y) %%\n");
+ Output(Out, "PatternY = (BltInfo->DestRect.top -
BltInfo->BrushOrigin.y) %%\n");
Output(Out, "
BltInfo->PatternSurface->sizlBitmap.cy;\n");
}
else
{
- Output(Out, "PatternY = (BltInfo->DestRect.bottom - 1 +\n");
+ Output(Out, "PatternY = (BltInfo->DestRect.bottom - 1 -\n");
Output(Out, " BltInfo->BrushOrigin.y) %%\n");
Output(Out, "
BltInfo->PatternSurface->sizlBitmap.cy;\n");
}
@@ -547,7 +547,7 @@
}
if (RopInfo->UsesPattern && 0 != (Flags & FLAG_PATTERNSURFACE))
{
- Output(Out, "BasePatternX = (BltInfo->DestRect.left +
BltInfo->BrushOrigin.x) %%\n");
+ Output(Out, "BasePatternX = (BltInfo->DestRect.left -
BltInfo->BrushOrigin.x) %%\n");
Output(Out, "
BltInfo->PatternSurface->sizlBitmap.cx;\n");
}