Android - wrong physical size
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start by reproducing the Resize event behavior in winit 0.29.15 on the reported Samsung M21 running Android 12, comparing the 1080px physical width with the 810px value and the logical size. Compare the result with winit 0.28 to establish whether this is a regression; done means the reported physical size is explained or corrected and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-windowing/winit
-
B - bug DS - appkit
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
rust-windowing/winit#4666 · 1 comment ·
-
DS - x11
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rust-windowing/winit#4479 · 5 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
rust-windowing/winit#4701 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
rust-windowing/winit#4698 · 2 comments ·
-
B - bug DS - win32
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rust-windowing/winit#4691 ·
All issues in rust-windowing/winit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100