mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 945655 - Simplify the crop FilterNodeSoftware filter. r=roc
This commit is contained in:
parent
b2339b298c
commit
c0ceead6e7
@ -2814,13 +2814,7 @@ FilterNodeCropSoftware::SetAttribute(uint32_t aIndex,
|
||||
TemporaryRef<DataSourceSurface>
|
||||
FilterNodeCropSoftware::Render(const IntRect& aRect)
|
||||
{
|
||||
IntRect sourceRect = aRect.Intersect(mCropRect);
|
||||
RefPtr<DataSourceSurface> input =
|
||||
GetInputDataSourceSurface(IN_CROP_IN, sourceRect);
|
||||
if (!input) {
|
||||
return nullptr;
|
||||
}
|
||||
return GetDataSurfaceInRect(input, sourceRect, aRect, EDGE_MODE_NONE);
|
||||
return GetInputDataSourceSurface(IN_CROP_IN, aRect.Intersect(mCropRect));
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user