[ENG] Fix behaviour of EngGradientFill() for rectangles

Don't offset the rectangle's top left point to the current dithering point, since it's already done now in Gre part of the function.
This fixes broken gradient captions after the previous commit, in case when Drv implementation is not provided by a display/video driver and Eng function is used instead.
CORE-14927, CORE-15341
This commit is contained in:
Oleg Dubinskiy
2026-01-10 19:24:32 +01:00
parent 3a763d2126
commit c9da37f7a4

View File

@@ -72,7 +72,6 @@ IntEngGradientFillRect(
rcGradient.top = min(v1->y, v2->y);
rcGradient.bottom = max(v1->y, v2->y);
rcSG = rcGradient;
RECTL_vOffsetRect(&rcSG, pptlDitherOrg->x, pptlDitherOrg->y);
if(Horizontal)
{