mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[WIN32K]
In IntEngGradientFillRect, take the translate value into account, that we need when drawing happens on an intermediate surface. Patch by Thomas Faber (ThFabba at gmx dot de) See issue #5805 for more details. svn path=/trunk/; revision=50764
This commit is contained in:
parent
8e49b79826
commit
bc8d008551
1 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@ IntEngGradientFillRect(
|
||||||
{
|
{
|
||||||
Color = XLATEOBJ_iXlate(pxlo, RGB(c[0], c[1], c[2]));
|
Color = XLATEOBJ_iXlate(pxlo, RGB(c[0], c[1], c[2]));
|
||||||
DibFunctionsForBitmapFormat[psoOutput->iBitmapFormat].DIB_VLine(
|
DibFunctionsForBitmapFormat[psoOutput->iBitmapFormat].DIB_VLine(
|
||||||
psoOutput, y, FillRect.top, FillRect.bottom, Color);
|
psoOutput, y + Translate.x, FillRect.top + Translate.y, FillRect.bottom + Translate.y, Color);
|
||||||
}
|
}
|
||||||
HVSTEPCOL(0);
|
HVSTEPCOL(0);
|
||||||
HVSTEPCOL(1);
|
HVSTEPCOL(1);
|
||||||
|
@ -158,7 +158,7 @@ IntEngGradientFillRect(
|
||||||
{
|
{
|
||||||
Color = XLATEOBJ_iXlate(pxlo, RGB(c[0], c[1], c[2]));
|
Color = XLATEOBJ_iXlate(pxlo, RGB(c[0], c[1], c[2]));
|
||||||
DibFunctionsForBitmapFormat[psoOutput->iBitmapFormat].DIB_HLine(
|
DibFunctionsForBitmapFormat[psoOutput->iBitmapFormat].DIB_HLine(
|
||||||
psoOutput, FillRect.left, FillRect.right, y, Color);
|
psoOutput, FillRect.left + Translate.x, FillRect.right + Translate.x, y + Translate.y, Color);
|
||||||
}
|
}
|
||||||
HVSTEPCOL(0);
|
HVSTEPCOL(0);
|
||||||
HVSTEPCOL(1);
|
HVSTEPCOL(1);
|
||||||
|
@ -187,7 +187,7 @@ IntEngGradientFillRect(
|
||||||
for(; FillRect.top < FillRect.bottom; FillRect.top++)
|
for(; FillRect.top < FillRect.bottom; FillRect.top++)
|
||||||
{
|
{
|
||||||
DibFunctionsForBitmapFormat[psoOutput->iBitmapFormat].DIB_HLine(
|
DibFunctionsForBitmapFormat[psoOutput->iBitmapFormat].DIB_HLine(
|
||||||
psoOutput, FillRect.left, FillRect.right, FillRect.top, Color);
|
psoOutput, FillRect.left + Translate.x, FillRect.right + Translate.x, FillRect.top + Translate.y, Color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,7 @@ IntEngGradientFillTriangle(
|
||||||
//ULONG i;
|
//ULONG i;
|
||||||
POINTL Translate;
|
POINTL Translate;
|
||||||
INTENG_ENTER_LEAVE EnterLeave;
|
INTENG_ENTER_LEAVE EnterLeave;
|
||||||
RECTL FillRect;
|
RECTL FillRect = { 0, 0, 0, 0 };
|
||||||
//ULONG Color;
|
//ULONG Color;
|
||||||
|
|
||||||
//BOOL sx[NLINES];
|
//BOOL sx[NLINES];
|
||||||
|
|
Loading…
Reference in a new issue