mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
Did forget instate in for loop the patternX, the right way. thx GvG to spot it and tell me how to fix.
svn path=/trunk/; revision=16492
This commit is contained in:
parent
c2db525161
commit
dfcc16249d
1 changed files with 7 additions and 2 deletions
|
@ -483,7 +483,7 @@ CreateBitCase(FILE *Out, unsigned Bpp, PROPINFO RopInfo, int Flags,
|
||||||
}
|
}
|
||||||
if (RopInfo->UsesPattern && 0 != (Flags & FLAG_PATTERNSURFACE))
|
if (RopInfo->UsesPattern && 0 != (Flags & FLAG_PATTERNSURFACE))
|
||||||
{
|
{
|
||||||
Output(Out, "PatternX = (BltInfo->DestRect.left + BltInfo->BrushOrigin.x) %%\n");
|
Output(Out, "BasePatternX = (BltInfo->DestRect.left + BltInfo->BrushOrigin.x) %%\n");
|
||||||
Output(Out, " BltInfo->PatternSurface->sizlBitmap.cx;\n");
|
Output(Out, " BltInfo->PatternSurface->sizlBitmap.cx;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -504,6 +504,11 @@ CreateBitCase(FILE *Out, unsigned Bpp, PROPINFO RopInfo, int Flags,
|
||||||
Output(Out, "DestPtr = (PULONG) DestBase;\n");
|
Output(Out, "DestPtr = (PULONG) DestBase;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (RopInfo->UsesPattern && 0 != (Flags & FLAG_PATTERNSURFACE))
|
||||||
|
{
|
||||||
|
Output(Out, "PatternX = BasePatternX;\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (ROPCODE_SRCCOPY == RopInfo->RopCode &&
|
if (ROPCODE_SRCCOPY == RopInfo->RopCode &&
|
||||||
0 != (Flags & FLAG_TRIVIALXLATE) && Bpp == SourceBpp)
|
0 != (Flags & FLAG_TRIVIALXLATE) && Bpp == SourceBpp)
|
||||||
{
|
{
|
||||||
|
@ -744,7 +749,7 @@ CreatePrimitive(FILE *Out, unsigned Bpp, PROPINFO RopInfo)
|
||||||
#endif
|
#endif
|
||||||
if (RopInfo->UsesPattern)
|
if (RopInfo->UsesPattern)
|
||||||
{
|
{
|
||||||
Output(Out, "ULONG PatternX, PatternY = 0;\n");
|
Output(Out, "ULONG PatternX =0, PatternY = 0, BasePatternX = 0;\n");
|
||||||
}
|
}
|
||||||
First = 1;
|
First = 1;
|
||||||
if (RopInfo->UsesSource)
|
if (RopInfo->UsesSource)
|
||||||
|
|
Loading…
Reference in a new issue