Use FillRectangleClip in List and Container

This commit is contained in:
Sasha Koshka
2023-02-14 16:53:28 -05:00
parent fa42cf1f5f
commit 09f782953e
4 changed files with 43 additions and 28 deletions

View File

@@ -56,8 +56,8 @@ func FillRectangleClip (
realBounds := bounds
bounds =
bounds.Canon().
Intersect(destination.Bounds()).
Intersect(mask)
Intersect(mask.Canon()).
Intersect(destination.Bounds())
if bounds.Empty() { return }
updatedRegion = bounds