PojavLauncherTeam / PojavLauncher

A Minecraft: Java Edition Launcher for Android and iOS based on Boardwalk. This repository contains source code for Android platform.
GNU Lesser General Public License v3.0
6.67k stars 1.27k forks source link

[BUG] Image cropping issue in landscape layout. #5741

Open MovTery opened 3 months ago

MovTery commented 3 months ago

Describe the bug

In landscape layout, there's an issue with image cropping. I suspect it's because the landscape layout changes the scaling and cropping range ratio, causing it to mistakenly crop into the transparent areas outside of the image.

The log file and images/videos

https://github.com/PojavLauncherTeam/PojavLauncher/assets/123115192/e8c4eadc-c5d1-4aea-b408-2722d7ac8089

Steps To Reproduce

1.Custom icons in landscape layout.
2.Arbitrary scaling

Expected Behavior

Fix this issue

Platform

- Device model: OPPO PCAM10
- CPU architecture: arm64
- Android version: 11
- PojavLauncher version: foxglove-20240703-08612cc-

Anything else?

No response

GaucovyAero commented 3 weeks ago

show a screenshot

MovTery commented 3 weeks ago

This issue can only be properly demonstrated by recording a video, and I have already posted the video link earlier.