Skip to content

Keep the designer's proportions on square screens - #23

Merged
DankMiimer merged 1 commit into
linuxfrom
feature/square-layout
Nov 17, 2026
Merged

DankMiimer merged 1 commit into
linuxfrom
feature/square-layout

Conversation

@DankMiimer

Copy link
Copy Markdown
Owner

Summary

Square screens such as the 720×720 RGCubeXX now keep the designer's proportions, instead of stretching every screen to the full height.

  • Box and Bank: the well keeps the design cell shape (160×134) and is centered in the height it was given. Before, cells came out about 103×113, taller than wide.
  • Home: the scale follows the height but no faster than the width, so the five destinations stay wider than tall and the extra height goes to the game shelf. Before, Home was drawn 1.5× with 123×132 tiles.
  • Box overview: centered on screens taller than 4:3.
  • HANDHELD_COMPATIBILITY.md notes the square layout and that no square handheld has run it yet.

The Linux-only layout lives in the new TallScreenLayout. The only shared file changed is the fork-only HomePaint.cs.

Verification

  • Headless captures at 720×480 of boxes, Bank and Home are pixel-identical before and after. At 640×480 the box well is unchanged by construction, and the overview only moves on tall screens.
  • Headless captures at 720×720 of Home, boxes, Bank, summary, box overview, menus, lists, pickers, Pokédex, Item Bank and park all look right.
  • 12 new tests in TallScreenLayoutTests. Full Linux solution: 77 Park, 211 Linux UI, 1,746 Engine and 1,437 Domain tests pass.
  • Not checked: a real square handheld.

🤖 Generated with Claude Code

On a 720x720 screen such as the RGCubeXX every screen stretched to the
full height: box cells grew taller than wide, Home's destinations grew
taller than wide at 1.5x, and the box overview hung at the top.

- Box and Bank wells keep the design cell shape (160x134) and are
  centered in the height they were given.
- Home scales with the height but no faster than the width, so the
  extra height goes to the shelf.
- The box overview is centered on screens taller than 4:3.

640x480 and 720x480 render as before: captures of boxes, Bank and
Home at 720x480 are pixel-identical, and the box overview only moves
on tall screens. Not yet run on a square handheld.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DankMiimer
DankMiimer merged commit f56d920 into linux Nov 17, 2026
6 checks passed
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.

1 participant