Skip to content

Commit

Permalink
Avoid resizing original fill images as there is no need
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 22, 2021
1 parent dc757cd commit 291e8f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions canvas/image.go
Expand Up @@ -74,6 +74,9 @@ func (i *Image) Resize(s fyne.Size) {
if s == i.Size() {
return
}
if i.FillMode == ImageFillOriginal && i.size.Height > 2 { // don't refresh original scale images after first draw
return
}

i.baseObject.Resize(s)

Expand Down

0 comments on commit 291e8f9

Please sign in to comment.