Fixed non-cannonized rectangles being drawn

This commit is contained in:
2023-08-24 17:15:34 -04:00
parent 77ccde9e9b
commit 8ed1352fd4
4 changed files with 15 additions and 14 deletions

View File

@@ -77,6 +77,7 @@ type pen struct {
}
func (this *pen) Rectangle (bounds image.Rectangle) {
bounds = bounds.Canon()
if this.weight == 0 {
if this.fill.A > 0 {
this.fillRectangle(this.fill, bounds)