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

Game does not fully display on Samsung Galaxy Z Fold2's main (large) display #12007

Closed
Calinou opened this issue Jan 29, 2022 · 5 comments
Closed
Labels

Comments

@Calinou
Copy link
Contributor

Calinou commented Jan 29, 2022

Minetest version
5.4.2 from Google Play Store (beta program enrolled)
OS / Hardware

Operating system: Android 12
CPU: Snapdragon 865 5G+, full device specs

GPU model: Adreno 650
OpenGL version: OpenGL ES 3.2

Summary

Using a fresh Minetest installation with the default graphics settings, the game displays correctly on the (small) external display:

Screenshot_20220127-152810_Minetest

However, after killing the application, unfolding the main display and restarting Minetest, the screen is partly cut off:

Screenshot_20220127-152732_Minetest

I've done pixel counting and it seems that only the bottom 960 pixels of the screen (out of 1768) are used by the game.

When forcing rotation to portrait mode in the device settings, the screen is also cut off on the main display, so this is not specific to the main display's aspect ratio in landscape mode:

Screenshot_20220127-154024_Minetest

Input coordinates are also messed up, as you need to aim much higher (and to the left) to be able to touch buttons in menus and the HUD.

More screenshots

Main menu on the external display (good)

Screenshot_20220129-191346_Minetest

Main menu on the unfolded display (bad)

Screenshot_20220129-191401_Minetest

In-game when starting on external display, then unfolding the device

The Minetest app does not support run-time resolution changes, so the device will keep the external display's resolution on the unfolded display until you restart the app.

Viewport looks good, but the HUD is partially off-screen:

Screenshot_20220129-191446_Minetest

Steps to reproduce

Start the game on a Samsung Galaxy Z Fold2's main (unfolded) display. This is likely reproducible on other models from the Z Fold line, but maybe not the Z Flip line (which folds on the other axis).

@Calinou Calinou added Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible Android labels Jan 29, 2022
@sfan5 sfan5 added Bug Issues that were confirmed to be a bug and removed Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible labels Apr 28, 2022
@nininik0

This comment was marked as off-topic.

@Unacceptium
Copy link
Contributor

i wrote a comment on #13671 wich i believe can be useful here

@grorp
Copy link
Member

grorp commented Aug 18, 2024

marking this issue as "possible close" since the Android version is now based on SDL, which hopefully doesn't have such problems

@Calinou
Copy link
Contributor Author

Calinou commented Aug 18, 2024

marking this issue as "possible close" since the Android version is now based on SDL, which hopefully doesn't have such problems

Does the Android version of 5.9.0 use SDL? If not, is there a development build I can grab somewhere to test it? (I don't have a setup to build for Android.)

@rubenwardy
Copy link
Contributor

yes, Android is SDL only

@Zughy Zughy closed this as completed Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants