rust-windowing / winit

Window handling library in pure Rust

Home Page:https://docs.rs/winit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android - wrong physical size

maciekglowka opened this issue · comments

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