Skip to content

Add an optional centered 16:9 world map on narrow screens - #574

Merged
mamcjr merged 1 commit into
mamcjr:mainfrom
lican81:centered-world-map
Nov 27, 2026
Merged

mamcjr merged 1 commit into
mamcjr:mainfrom
lican81:centered-world-map

Conversation

@lican81

@lican81 lican81 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Closes #553.

On an unfolded HONOR Magic V5, filling the display stretches the world map vertically. This adds Center world map at 16:9 under Display when the aspect ratio is unlocked. The option defaults to off. On a narrow display, enabling it centers the map with equal space above and below, keeps markers aligned with terrain, and returns to the chosen gameplay aspect ratio when the map closes.

The renderer uses the same map-draw signal for terrain, marker placement, scissor bounds, and final presentation. The preference is saved with the other display settings.

Verification

  • Tested both settings at 2352 × 2172 (HONOR Magic V5) and 2048 × 1536 (4:3). The regression checks cover terrain, marker placement, clipping, the final viewport, and closing the map. The existing fullscreen suite and all 11 negative controls passed on macOS with CC='cc -D_DARWIN_C_SOURCE -ffp-contract=off' python3 tools/test_fullscreen_narrow.py and its --negative-control variants.
  • Verified that an existing settings file without the key defaults to off, that enabling the option survives a reload, and that resetting defaults turns it off again.
  • Built the arm64 Android runtime against v0.4.13-beta, packaged it with the release APK's other components, and verified the resulting local test APK's signature and alignment.
  • The earlier implementation was tested on the unfolded HONOR Magic V5 in the Great Plateau scene with game version 1.8.2, including opening, panning, zooming, and closing the map. The phone was disconnected during this rebase, so on-device testing of this commit is still pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

World map appears vertically stretched on an unfolded HONOR Magic V5 with Unlocked aspect ratio

2 participants