Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastest scale mode is not working on Linux arm64 device #3891

Closed
2 tasks done
vinser opened this issue May 15, 2023 · 1 comment
Closed
2 tasks done

Fastest scale mode is not working on Linux arm64 device #3891

vinser opened this issue May 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@vinser
Copy link

vinser commented May 15, 2023

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

When I use ImageScaleFastest scale mode I've got

2023/05/15 21:21:57 Fyne error:  Invalid canvas.ImageScale value (2), using canvas.ImageScaleSmooth as default value
2023/05/15 21:21:57   At: /home/vinser/go/pkg/mod/fyne.io/fyne/v2@v2.3.4/internal/painter/gl/texture.go:195

How to reproduce

  1. Run the code beneath

Screenshots

No response

Example code

func main() {
	a := app.New()
	w := a.NewWindow("Test Fyne")
	img := canvas.NewImageFromFile("20141014_040331.jpg")
	img.FillMode = canvas.ImageFillContain
	img.ScaleMode = canvas.ImageScaleFastest
	w.SetContent(container.NewMax(img))
	w.Resize(fyne.NewSize(500, 500))
	w.CenterOnScreen()
	w.ShowAndRun()
}

Fyne version

2.3.4

Go compiler version

go version go1.20.4 linux/arm64

Operating system and version

Ubuntu 22.04

Additional Information

No response

@vinser vinser added the unverified A bug that has been reported but not verified label May 15, 2023
@vinser vinser changed the title Fastest scale mode not working on Linux arm64 device Fastest scale mode is not working on Linux arm64 device May 15, 2023
andydotxyz added a commit to andydotxyz/fyne that referenced this issue May 17, 2023
@Jacalz Jacalz added bug Something isn't working and removed unverified A bug that has been reported but not verified labels May 24, 2023
@Jacalz Jacalz added this to the Fixes (v2.3.x) milestone May 24, 2023
@Jacalz
Copy link
Member

Jacalz commented May 24, 2023

This has been fixed an will be in the next v2.3.5 release.

@Jacalz Jacalz closed this as completed May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants