Skip to content

Commit

Permalink
Merge pull request #4088 from andydotxyz/fix/4080
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz authored Jul 30, 2023
2 parents 27cc5d3 + d8b451d commit 50c5a3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion canvas/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ func (i *Image) Resize(s fyne.Size) {
}

i.baseObject.Resize(s)
i.Refresh()
if i.isSVG || i.Image == nil {
i.Refresh() // we need to rasterise at the new size
} else {
Refresh(i) // just re-size using GPU scaling
}
}

// NewImageFromFile creates a new image from a local file.
Expand Down

0 comments on commit 50c5a3d

Please sign in to comment.