From 291e8f906d160c2ec0642bc8268f65d25f7f8c96 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Thu, 22 Jul 2021 19:39:38 +0100 Subject: [PATCH] Avoid resizing original fill images as there is no need Fixes #2337 --- canvas/image.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/canvas/image.go b/canvas/image.go index 53d4e6c9b2..70eb9f2019 100644 --- a/canvas/image.go +++ b/canvas/image.go @@ -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)