flexible-elements-were-a-mistake #11

Merged
sashakoshka merged 17 commits from flexible-elements-were-a-mistake into main 2023-03-13 21:37:58 -06:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit be45f7ad71 - Show all commits

View File

@ -68,7 +68,7 @@ func StrokeEllipse (
},
radii: image.Pt(drawBounds.Dx() / 2, drawBounds.Dy() / 2),
}
context.center = bounds.Min.Add(context.radii)
context.center = drawBounds.Min.Add(context.radii)
context.plotEllipse()
}

View File

@ -49,7 +49,7 @@ func StrokeRectangle (
if insetBounds.Empty() {
return FillRectangle(destination, source, bounds)
}
return FillRectangleShatter(destination, source, insetBounds)
return FillRectangleShatter(destination, source, bounds, insetBounds)
}
// FillRectangleShatter is like FillRectangle, but it does not draw in areas