mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 945655 - Composite filters with operator IN have a result that is the intersection of the input rects, not the union. FilterNodeSoftware part. r=roc
This commit is contained in:
parent
5582cfa361
commit
bbfebead46
@ -2652,7 +2652,12 @@ FilterNodeCompositeSoftware::GetOutputRectInRect(const IntRect& aRect)
|
||||
{
|
||||
IntRect rect;
|
||||
for (size_t inputIndex = 0; inputIndex < NumberOfSetInputs(); inputIndex++) {
|
||||
rect = rect.Union(GetInputRectInRect(IN_COMPOSITE_IN_START + inputIndex, aRect));
|
||||
IntRect inputRect = GetInputRectInRect(IN_COMPOSITE_IN_START + inputIndex, aRect);
|
||||
if (mOperator == COMPOSITE_OPERATOR_IN && inputIndex > 0) {
|
||||
rect = rect.Intersect(inputRect);
|
||||
} else {
|
||||
rect = rect.Union(inputRect);
|
||||
}
|
||||
}
|
||||
return rect;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user