mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user