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

Android - wrong physical size #3663

Open
maciekglowka opened this issue Apr 28, 2024 · 0 comments
Open

Android - wrong physical size #3663

maciekglowka opened this issue Apr 28, 2024 · 0 comments
Labels
B - bug Dang, that shouldn't have happened DS - android

Comments

@maciekglowka
Copy link

Description

Hi I am getting this weird bug with screen resolution recently. On Android I am determining my screen size from the Resize event (as on the app start the window is not there yet). Despite having a 1080px wide screen I am getting 810px reported from winit. (the logical size being 400 something).

I am pretty sure that this happened somewhere between 0.28 an 0.29. I scale my game UI based on this value and noticed something suspicious when comparing old screenshots. (unfortunately it'd be hard for me to revert the entire code back to 0.28)

I've just bumped the game to 0.29.15 to check if it didn't get fix during a minor revision but it's the same.

Device and Android version

Samsung M21, Android 12

Winit version

0.29.15

@maciekglowka maciekglowka added B - bug Dang, that shouldn't have happened DS - android labels Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - android
Development

No branches or pull requests

1 participant