[WIN32SS:ENG] Fix copy direction in overlapping EngTransparentBlt (#9117)

The brackets were around the wrong part, so the < checked the left edge against the picked direction instead of against the other left edge.

Bug was introduced in https://github.com/reactos/reactos/commit/5424a511074933c1b7874cdfce28fd1e06125b12 (r8988), then improved in https://github.com/reactos/reactos/commit/07a533fe02d9f3affaa33d004159ae846cbf1eb5 (r40380), however the obvious braces issue was not noticed.
This commit is contained in:
Ahmed Arif
2026-06-08 14:20:41 +03:00
committed by GitHub
parent 984657bdf0
commit a94352ba48
+2 -2
View File
@@ -145,11 +145,11 @@ EngTransparentBlt(
{
if (OutputRect.top < InputRect.top)
{
Direction = OutputRect.left < (InputRect.left ? CD_RIGHTDOWN : CD_LEFTDOWN);
Direction = OutputRect.left < InputRect.left ? CD_RIGHTDOWN : CD_LEFTDOWN;
}
else
{
Direction = OutputRect.left < (InputRect.left ? CD_RIGHTUP : CD_LEFTUP);
Direction = OutputRect.left < InputRect.left ? CD_RIGHTUP : CD_LEFTUP;
}
}
else