fix(ui): Extended ultrawide menus: the item carousel's right side no longer cut off #2621

Merged
HumanBean merged 4 commits from bulldogsajr22/Longshot:fix/ultrawide-carousel into main 2026-11-28 01:10:06 +00:00
Contributor

Summary

With Ultrawide menus at Extended on a picture wider than 16:9, the item quick select carousel (PaShortCutSlideList_00) leaves out items on its right side. It opens looking right, but once the selection has moved a few items to the right, the items after it stop partway across the screen and the rest of the right side stays empty, though the list goes on.

To see it on main: 5120x2160 (21:9), Ultrawide menus at Extended, a save with a full item list (14 items here, sorted By Recently Selected). Open the item quick select and turn right 6 times. The left side fills out to the screen's edge (5 items, as many as fit), but only 3 of the 7 items after the selection are drawn, and the right fifth of the screen is empty.

Why: the carousel's list engine (f_8151eb00) counts its item slots once, from its pane's width, when it is set up as the save loads. Extended widened the list only later, after its layout was built (ui.layoutBuilt), so the count was made at the 16:9 width: 10 slots. A wider picture shows more items than that; every slot holds one, the engine takes no slot from an item still on screen (f_815230c0), and the items past them get none and are not drawn.

This adds a site, ui.listSetup (in f_8151eb00, after mov x19, x0; x19 is the engine), that widens a list kept at the screen's width before its engine counts its slots. It uses the step ui.layoutBuilt already took, now widen_kept_list, which first puts back a width an earlier call set, so the two calls never compound. The engine then makes as many slots as the wide list holds: 13 at 5120x2160, 18 at 32:9 (5120x1440). Only a list with the RULE_KEEP_WIDE rule is touched (today only this carousel), and only with Extended on a picture wider than 16:9.

Read first: hos_wide_ui_list_setup and widen_kept_list in game/hos_wide_ui.c, then the site in game/sites/sites.toml and its location in game/sites/e0f3ccfaf50065ae4ea01eb5aeb13b1a45da3348/locations.toml.

No issue was open for it (searched open, merged and closed issues and pull requests). See #1892, which added Extended and the carousel's widening at its layout's build.

Testing

Tested: Windows 11 Pro (26H2, build 26300), RTX 5090, NVIDIA 621.40, 5120x2160 with HDR. In the game, with this branch plus logging commits on top (logging only, not part of this pull request); Ultrawide menus at Extended unless said otherwise.

  • The bug's steps (Ice Cavern save, 14 items, turned right 6 times): every item is drawn out to both screen edges, 5 on each side of the selection, where main drew 3 on the right. Closed, reopened and turned right 8 more times: the same.
  • Both ends of the list, and both sort orders (By Recently Selected, By Type): every item drawn to the screen's edges, the row ending after the last item.
  • Aspect ratio 32:9 (Custom output size 5120x1440, on the same screen): items drawn to both edges; the 14-item list shown whole.
  • Started at Centred, blurred sides: the carousel as on main (10 slots, in the middle 16:9).
  • Aspect ratio 16:9 (5120x2880, black bars at the sides) with Extended: the carousel as on main (10 slots from 4760), turned both ways with nothing drawn outside the picture.
  • The log: the carousel's engine counts 13 slots from a 6040-wide area at 5120x2160 (main: 10 from 4760) and 18 from 8600 at 32:9. The two other lists this site sees, SystemLoadList_00 (6 slots) and PaChallengeIndexSlideList_00 (10 slots), are counted as on main.

Checks:

  • tests/test_wide_ui.py passes. On main's behaviour (main with this branch's site wiring and an empty hos_wide_ui_list_setup, so the fixture links) it fails at the new check right after the engine's setup, near(getf(list + PANE_W), 3840 / hos_wide_squeeze): the list is still 3840 wide when its slots are counted.
  • game/hos_wide_ui.c and game/oot_wide_sites.c compile for x86_64 Linux (clang 22, the build's host flags with -Wall -Wextra: no warnings, as on main) and for Windows in this branch's game builds (the builder's llvm-mingw).
  • ruff 0.12.0, the whitespace check and the commit title check pass.
  • mise run test passes, on Linux (WSL, Ubuntu), with mise.toml's pinned tools and mise run test-deps, and the CI image's packages (gcc 15, clang 21, lld, llvm-mc, spirv-tools, libdav1d-dev, cmake): this head 849 pass, 1 fails, 9 skipped; main @ 4d1e555f the same 849 and the same one, tests/test_linux_saves_move.py, which needs the file system to list a folder's entries in an order this one doesn't give ("no names put both kinds of entry before stuck/ in this listing").
  • Its first run, on 096323ad, caught ui.listSetup's signature: 11 words, where the sites crate's repository test (tests/test_lifter.py) allows 8. f7379471 makes it the last 4 (the setup call's arguments and the site's own mov x19, x0), found exactly once in the supported build, at f_8151eb00 + 0x40; the site's offset is unchanged. A game build from f7379471 places all 143 sites, as 096323ad's did, and compiles the same game code (every object from its cache).

Still to test:

  • Linux, AMD (Tier 1), Custom output size 2560x1080 with Ultrawide menus at Extended: the bug's steps, expecting every item drawn to both screen edges (@Beanstalk)

Not changed here (as on main, reported as #2630): the carousel's slots are counted once, as the save loads, and its width is set when it is first opened; a later change to Ultrawide menus doesn't reach it until the game restarts. Switched from Extended to Centred after it has been opened, its items run into the blurred sides; switched from Centred to Extended, it stays at 16:9 (both seen in the game on main too). Started at Centred and switched to Extended before the carousel is first opened, it is widened but keeps the 10 slots counted at load (the log shows 10), so it is cut off on the right as on main. A later change could set the list up again when the choice changes (#2630).

Measurements

Verdict: fixed: at 5120x2160 with Extended the carousel counts 13 item slots instead of 10, and draws every item out to the screen's right edge (main: 3 of the 7 items after the selection).

Baseline: the slot counts on the main side come from main @ 4d1e555f with logging commits only. Its screenshot comes from nightly-835 (201f8868), one commit behind 4d1e555f, which changes only the release workflows, their doc and their test; the game's code is the same.
Setup: Windows 11 Pro 26300, RTX 5090, NVIDIA 621.40; 5120x2160 with HDR (5120x1440 for 32:9), Ultrawide menus at Extended; the Ice Cavern save, 14 items, By Recently Selected; the slot counts from the logging commits' lines in longshot_log.txt, the items counted on the screenshots in #2621 (comment). The After column was measured at 096323ad; f7379471 changes only the words that find the site, not where it is placed, and its build compiles the same game code.

Before: main @ 4d1e555f After: this PR @ 096323ad
carousel slots, 5120x2160, Extended 10 (from 4760 wide) 13 (from 6040 wide)
carousel slots, 5120x1440 (32:9), Extended not run 18 (from 8600 wide)
items drawn after the selection, 6 turns right 3 of 7, the right side empty 5, the last at the screen's edge
carousel slots, started at Centred 10 10
carousel slots, 16:9 picture, Extended not run 10 (from 4760 wide, as main counts at 21:9 before the fix)
SystemLoadList_00 / PaChallengeIndexSlideList_00 slots 6 / 10 6 / 10
tests/test_wide_ui.py fails (the list still 3840 wide at its setup) passes
main @ 4d1e555f + logging, 5120x2160, Extended:
carousel diag: list engine 109c82acd0 setup: slots 10 (visible by its size 10, sum 10, extra 0, cap 0), size 4760.0 x 890.0, +0x12c 0.00, +0x28 16, +0x114 0
this PR + logging, 5120x2160, Extended:
carousel diag: list engine 109c82acd0 setup: slots 13 (visible by its size 13, sum 13, extra 0, cap 0), size 6040.0 x 890.0, +0x12c 0.00, +0x28 16, +0x114 0
this PR + logging, 5120x1440 (32:9), Extended:
carousel diag: list engine 10880aacd0 setup: slots 18 (visible by its size 18, sum 18, extra 0, cap 0), size 8600.0 x 890.0, +0x12c 0.00, +0x28 16, +0x114 0

Risks

A list kept at the screen's width is now widened as its engine is set up, as well as when its layout is built. Today that is only the item carousel. It now counts more slots than before (3 more at 5120x2160, 8 more at 32:9), each a cell layout the game makes as it does for its own 10, once as the save loads; nothing runs per frame. That memory is not measured: a few of the game's own cell layouts. Ultrawide menus at any other choice (Full width, either Centred), and pictures of 16:9 or narrower, are unchanged: the site does nothing then. If it misbehaves, any Ultrawide menus choice but Extended avoids it; a revert is enough. Nothing changes in saves, longshot_options.ini or the caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). (849 of 850 on Linux; tests/test_linux_saves_move.py fails the same on main: see Testing.)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Screenshots of the same spot on main and here, for a change that shows on screen. In #2621 (comment).
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary With **Ultrawide menus** at **Extended** on a picture wider than 16:9, the item quick select carousel (`PaShortCutSlideList_00`) leaves out items on its right side. It opens looking right, but once the selection has moved a few items to the right, the items after it stop partway across the screen and the rest of the right side stays empty, though the list goes on. To see it on `main`: 5120x2160 (21:9), Ultrawide menus at Extended, a save with a full item list (14 items here, sorted By Recently Selected). Open the item quick select and turn right 6 times. The left side fills out to the screen's edge (5 items, as many as fit), but only 3 of the 7 items after the selection are drawn, and the right fifth of the screen is empty. Why: the carousel's list engine (`f_8151eb00`) counts its item slots once, from its pane's width, when it is set up as the save loads. Extended widened the list only later, after its layout was built (`ui.layoutBuilt`), so the count was made at the 16:9 width: 10 slots. A wider picture shows more items than that; every slot holds one, the engine takes no slot from an item still on screen (`f_815230c0`), and the items past them get none and are not drawn. This adds a site, `ui.listSetup` (in `f_8151eb00`, after `mov x19, x0`; x19 is the engine), that widens a list kept at the screen's width before its engine counts its slots. It uses the step `ui.layoutBuilt` already took, now `widen_kept_list`, which first puts back a width an earlier call set, so the two calls never compound. The engine then makes as many slots as the wide list holds: 13 at 5120x2160, 18 at 32:9 (5120x1440). Only a list with the `RULE_KEEP_WIDE` rule is touched (today only this carousel), and only with Extended on a picture wider than 16:9. Read first: `hos_wide_ui_list_setup` and `widen_kept_list` in `game/hos_wide_ui.c`, then the site in `game/sites/sites.toml` and its location in `game/sites/e0f3ccfaf50065ae4ea01eb5aeb13b1a45da3348/locations.toml`. No issue was open for it (searched open, merged and closed issues and pull requests). See #1892, which added Extended and the carousel's widening at its layout's build. ## Testing **Tested:** Windows 11 Pro (26H2, build 26300), RTX 5090, NVIDIA 621.40, 5120x2160 with HDR. In the game, with this branch plus logging commits on top (logging only, not part of this pull request); Ultrawide menus at Extended unless said otherwise. - The bug's steps (Ice Cavern save, 14 items, turned right 6 times): every item is drawn out to both screen edges, 5 on each side of the selection, where `main` drew 3 on the right. Closed, reopened and turned right 8 more times: the same. - Both ends of the list, and both sort orders (By Recently Selected, By Type): every item drawn to the screen's edges, the row ending after the last item. - Aspect ratio 32:9 (Custom output size 5120x1440, on the same screen): items drawn to both edges; the 14-item list shown whole. - Started at Centred, blurred sides: the carousel as on `main` (10 slots, in the middle 16:9). - Aspect ratio 16:9 (5120x2880, black bars at the sides) with Extended: the carousel as on `main` (10 slots from 4760), turned both ways with nothing drawn outside the picture. - The log: the carousel's engine counts 13 slots from a 6040-wide area at 5120x2160 (`main`: 10 from 4760) and 18 from 8600 at 32:9. The two other lists this site sees, `SystemLoadList_00` (6 slots) and `PaChallengeIndexSlideList_00` (10 slots), are counted as on `main`. Checks: - `tests/test_wide_ui.py` passes. On `main`'s behaviour (`main` with this branch's site wiring and an empty `hos_wide_ui_list_setup`, so the fixture links) it fails at the new check right after the engine's setup, `near(getf(list + PANE_W), 3840 / hos_wide_squeeze)`: the list is still 3840 wide when its slots are counted. - `game/hos_wide_ui.c` and `game/oot_wide_sites.c` compile for x86_64 Linux (clang 22, the build's host flags with `-Wall -Wextra`: no warnings, as on `main`) and for Windows in this branch's game builds (the builder's llvm-mingw). - ruff 0.12.0, the whitespace check and the commit title check pass. - `mise run test` passes, on Linux (WSL, Ubuntu), with `mise.toml`'s pinned tools and `mise run test-deps`, and the CI image's packages (gcc 15, clang 21, lld, llvm-mc, spirv-tools, libdav1d-dev, cmake): this head 849 pass, 1 fails, 9 skipped; `main` @ 4d1e555f the same 849 and the same one, `tests/test_linux_saves_move.py`, which needs the file system to list a folder's entries in an order this one doesn't give ("no names put both kinds of entry before stuck/ in this listing"). - Its first run, on 096323ad, caught `ui.listSetup`'s signature: 11 words, where the sites crate's repository test (`tests/test_lifter.py`) allows 8. f7379471 makes it the last 4 (the setup call's arguments and the site's own `mov x19, x0`), found exactly once in the supported build, at `f_8151eb00` + 0x40; the site's offset is unchanged. A game build from f7379471 places all 143 sites, as 096323ad's did, and compiles the same game code (every object from its cache). **Still to test:** - Linux, AMD (Tier 1), Custom output size 2560x1080 with Ultrawide menus at Extended: the bug's steps, expecting every item drawn to both screen edges (`@Beanstalk`) **Not changed here (as on `main`, reported as #2630):** the carousel's slots are counted once, as the save loads, and its width is set when it is first opened; a later change to Ultrawide menus doesn't reach it until the game restarts. Switched from Extended to Centred after it has been opened, its items run into the blurred sides; switched from Centred to Extended, it stays at 16:9 (both seen in the game on `main` too). Started at Centred and switched to Extended before the carousel is first opened, it is widened but keeps the 10 slots counted at load (the log shows 10), so it is cut off on the right as on `main`. A later change could set the list up again when the choice changes (#2630). ## Measurements **Verdict:** fixed: at 5120x2160 with Extended the carousel counts 13 item slots instead of 10, and draws every item out to the screen's right edge (`main`: 3 of the 7 items after the selection). Baseline: the slot counts on the `main` side come from `main` @ 4d1e555f with logging commits only. Its screenshot comes from nightly-835 (201f8868), one commit behind 4d1e555f, which changes only the release workflows, their doc and their test; the game's code is the same. Setup: Windows 11 Pro 26300, RTX 5090, NVIDIA 621.40; 5120x2160 with HDR (5120x1440 for 32:9), Ultrawide menus at Extended; the Ice Cavern save, 14 items, By Recently Selected; the slot counts from the logging commits' lines in `longshot_log.txt`, the items counted on the screenshots in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2621#issuecomment-83550. The After column was measured at 096323ad; f7379471 changes only the words that find the site, not where it is placed, and its build compiles the same game code. | | Before: main @ 4d1e555f | After: this PR @ 096323ad | |---|---|---| | carousel slots, 5120x2160, Extended | 10 (from 4760 wide) | 13 (from 6040 wide) | | carousel slots, 5120x1440 (32:9), Extended | not run | 18 (from 8600 wide) | | items drawn after the selection, 6 turns right | 3 of 7, the right side empty | 5, the last at the screen's edge | | carousel slots, started at Centred | 10 | 10 | | carousel slots, 16:9 picture, Extended | not run | 10 (from 4760 wide, as `main` counts at 21:9 before the fix) | | `SystemLoadList_00` / `PaChallengeIndexSlideList_00` slots | 6 / 10 | 6 / 10 | | `tests/test_wide_ui.py` | fails (the list still 3840 wide at its setup) | passes | ``` main @ 4d1e555f + logging, 5120x2160, Extended: carousel diag: list engine 109c82acd0 setup: slots 10 (visible by its size 10, sum 10, extra 0, cap 0), size 4760.0 x 890.0, +0x12c 0.00, +0x28 16, +0x114 0 this PR + logging, 5120x2160, Extended: carousel diag: list engine 109c82acd0 setup: slots 13 (visible by its size 13, sum 13, extra 0, cap 0), size 6040.0 x 890.0, +0x12c 0.00, +0x28 16, +0x114 0 this PR + logging, 5120x1440 (32:9), Extended: carousel diag: list engine 10880aacd0 setup: slots 18 (visible by its size 18, sum 18, extra 0, cap 0), size 8600.0 x 890.0, +0x12c 0.00, +0x28 16, +0x114 0 ``` ## Risks A list kept at the screen's width is now widened as its engine is set up, as well as when its layout is built. Today that is only the item carousel. It now counts more slots than before (3 more at 5120x2160, 8 more at 32:9), each a cell layout the game makes as it does for its own 10, once as the save loads; nothing runs per frame. That memory is not measured: a few of the game's own cell layouts. Ultrawide menus at any other choice (Full width, either Centred), and pictures of 16:9 or narrower, are unchanged: the site does nothing then. If it misbehaves, any Ultrawide menus choice but Extended avoids it; a revert is enough. Nothing changes in saves, `longshot_options.ini` or the caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). (849 of 850 on Linux; `tests/test_linux_saves_move.py` fails the same on `main`: see Testing.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. In https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2621#issuecomment-83550. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(ui): Extended ultrawide menus: the item carousel's right side no longer cut off
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 19s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
096323adcd
The item quick select's carousel (PaShortCutSlideList_00) counts its item slots once, from its pane's width, when
its list engine is set up (f_8151eb00). Extended widened the list only after its layout was built, so the count was
made at the 16:9 width: 10 slots. On a wider screen more items are on screen than that, every slot holds one, the
engine takes no slot from an item on screen, and the items past them got none and were not drawn: the right side
was cut off as the selection moved right.

A new site, ui.listSetup (after mov x19, x0 in f_8151eb00), widens a list kept at the screen's width before its
engine counts its slots, through the same step as ui.layoutBuilt's (now widen_kept_list, which puts back what an
earlier call widened, so the two never compound). The engine then makes as many slots as the wide list holds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: Windows 11 Pro 26H2 (26300), RTX 5090, NVIDIA 621.40, 5120x2160 HDR, Ice Cavern save: with Extended, the carousel draws every item to both screen edges at 21:9 and 32:9 (main: 3 of 7 after the selection at 21:9); 16:9 and Centred unchanged.

Tested in game: Windows 11 Pro 26H2 (26300), RTX 5090, NVIDIA 621.40, 5120x2160 HDR, Ice Cavern save: with Extended, the carousel draws every item to both screen edges at 21:9 and 32:9 (main: 3 of 7 after the selection at 21:9); 16:9 and Centred unchanged.
Member

Possibly related, for context:

  • PR #1892 feat(ui): an Extended choice for Ultrawide menus, the menus' side panes at the screen's edges — Introduced Extended ultrawide menu layout and carousel widening
Possibly related, for context: - PR #1892 feat(ui): an Extended choice for Ultrawide menus, the menus' side panes at the screen's edges — Introduced Extended ultrawide menu layout and carousel widening
Author
Contributor

Screenshots, the same spot (Ice Cavern, 5120x2160, Ultrawide menus at Extended, By Recently Selected, the item quick select turned right 6 times, the Hookshot selected):

main (nightly-835, 201f8868, one commit behind 4d1e555f): 5 items before the selection, only 3 of the 7 after it drawn, the right side empty.

main: the right side cut off

This PR: every item drawn out to both screen edges, 5 on each side.

this PR: items to both edges

(Both look bright and washed out: NVIDIA's RTX HDR overlay was on during those runs, not the game.)

Screenshots, the same spot (Ice Cavern, 5120x2160, Ultrawide menus at Extended, By Recently Selected, the item quick select turned right 6 times, the Hookshot selected): **main** (nightly-835, 201f8868, one commit behind 4d1e555f): 5 items before the selection, only 3 of the 7 after it drawn, the right side empty. ![main: the right side cut off](https://git.magicbean.dev/attachments/693ca21d-02d0-410a-bc27-8173b9365b3b) **This PR**: every item drawn out to both screen edges, 5 on each side. ![this PR: items to both edges](https://git.magicbean.dev/attachments/0096385b-ba28-4b84-82bd-faeeaa9f7b9b) (Both look bright and washed out: NVIDIA's RTX HDR overlay was on during those runs, not the game.)
Author
Contributor

@Beanstalk linux, amd: this head (096323ad) against main @ 4d1e555f, the same steps on each.

  1. Graphics: Output resolution Custom 2560x1080 (21:9), Ultrawide menus Extended; restart the game so both apply from the start.
  2. Load the repo save kokiri-start. On the Insert menu's Debug tab, Inventory (Edit items), unlock every item in the Items section (the quantity ones set above 0), at least 14, then close the menu.
  3. Open the item quick select (L or R), turn right 6 times, and take a screenshot.

Expected on this PR: items drawn out to both screen edges. On main: only some of the items after the selection are drawn and the right part of the screen is empty. A longshot_log.txt from each side is welcome too.

@Beanstalk linux, amd: this head (`096323ad`) against `main` @ 4d1e555f, the same steps on each. 1. Graphics: Output resolution Custom 2560x1080 (21:9), Ultrawide menus **Extended**; restart the game so both apply from the start. 2. Load the repo save `kokiri-start`. On the Insert menu's Debug tab, Inventory (Edit items), unlock every item in the Items section (the quantity ones set above 0), at least 14, then close the menu. 3. Open the item quick select (L or R), turn right 6 times, and take a screenshot. Expected on this PR: items drawn out to both screen edges. On `main`: only some of the items after the selection are drawn and the right part of the screen is empty. A `longshot_log.txt` from each side is welcome too.
Member

@bulldogsajr22 only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for 096323a, and the PR has changed since (f737947), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@bulldogsajr22 only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `096323a`, and the PR has changed since (`f737947`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
bulldogsajr22 changed title from WIP: fix(ui): Extended ultrawide menus: the item carousel's right side no longer cut off to fix(ui): Extended ultrawide menus: the item carousel's right side no longer cut off 2026-11-26 23:27:48 +00:00
fix(sites): ui.listSetup's signature in 4 words, the 8 the sites check allows at most
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 11s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
f73794717a
The sites crate's repository test allows a signature of at most 8 words (as few as find the site,
docs/dev/reference/hooks.md); ui.listSetup's had 11. It is now the last 4: the setup call's
arguments (sub x1, x29, #0x88; sub x2, x29, #0x90; mov w4, #2) and the site's own point,
mov x19, x0, at 0x40. They are found exactly once in the supported build's code, at f_8151eb00 +
0x40, as the 11 were at + 0x24; the site's offset (0x4c) is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012w3Td2PSv8fyk7Ss7rUwZx
Author
Contributor

Pushed f7379471: ui.listSetup's signature is now 4 words instead of 11.

A full mise run test on Linux caught it: the sites crate's repository test (in tests/test_lifter.py) allows a signature of at most 8 words, as few as find the site. The new one is the last 4 (sub x1, x29, #0x88; sub x2, x29, #0x90; mov w4, #2; mov x19, x0), found exactly once in the supported build at f_8151eb00 + 0x40; the site's offset (0x4c) is unchanged.

  • mise run test at f7379471: 849 pass, 1 fails, 9 skipped; main @ 4d1e555f the same, the one failure tests/test_linux_saves_move.py on both (it needs a folder listing order this file system doesn't give).
  • A game build from f7379471 places all 143 sites, as 096323ad's did, and compiles the same game code (every object from its cache), so the in-game results and the screenshots still hold.

The Test Farm request was for 096323ad, so it needs asking again for this head.

Pushed f7379471: `ui.listSetup`'s signature is now 4 words instead of 11. A full `mise run test` on Linux caught it: the sites crate's repository test (in `tests/test_lifter.py`) allows a signature of at most 8 words, as few as find the site. The new one is the last 4 (`sub x1, x29, #0x88; sub x2, x29, #0x90; mov w4, #2; mov x19, x0`), found exactly once in the supported build at `f_8151eb00` + 0x40; the site's offset (0x4c) is unchanged. - `mise run test` at f7379471: 849 pass, 1 fails, 9 skipped; `main` @ 4d1e555f the same, the one failure `tests/test_linux_saves_move.py` on both (it needs a folder listing order this file system doesn't give). - A game build from f7379471 places all 143 sites, as 096323ad's did, and compiles the same game code (every object from its cache), so the in-game results and the screenshots still hold. The Test Farm request was for 096323ad, so it needs asking again for this head.
Author
Contributor

@Beanstalk linux, amd: this head (f7379471) against main @ 4d1e555f, the same steps on each.

  1. Graphics: Output resolution Custom 2560x1080 (21:9), Ultrawide menus Extended; restart the game so both apply from the start.
  2. Load the repo save kokiri-start. On the Insert menu's Debug tab, Inventory (Edit items), unlock every item in the Items section (the quantity ones set above 0), at least 14, then close the menu.
  3. Open the item quick select (L or R), turn right 6 times, and take a screenshot.

Expected on this PR: items drawn out to both screen edges. On main: only some of the items after the selection are drawn and the right part of the screen is empty. A longshot_log.txt from each side is welcome too.

@Beanstalk linux, amd: this head (`f7379471`) against `main` @ 4d1e555f, the same steps on each. 1. Graphics: Output resolution Custom 2560x1080 (21:9), Ultrawide menus **Extended**; restart the game so both apply from the start. 2. Load the repo save `kokiri-start`. On the Insert menu's Debug tab, Inventory (Edit items), unlock every item in the Items section (the quantity ones set above 0), at least 14, then close the menu. 3. Open the item quick select (L or R), turn right 6 times, and take a screenshot. Expected on this PR: items drawn out to both screen edges. On `main`: only some of the items after the selection are drawn and the right part of the screen is empty. A `longshot_log.txt` from each side is welcome too.
Member

@bulldogsajr22 only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for f737947, and the PR has changed since (d0df4b8), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@bulldogsajr22 only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `f737947`, and the PR has changed since (`d0df4b8`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Merge branch 'main' into fix/ultrawide-carousel
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
d0df4b8c2e
Merge branch 'main' into fix/ultrawide-carousel
Some checks are pending
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval changed since the request: ask again
3c21b96a91
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Merged main @ a3591a98 into the branch (head 3c21b96a, no conflicts). The measurements, taken on main @ 4d1e555f, still hold on this base: none of the 15 commits between 4d1e555f and a3591a98 touch the PR's files (game/hos_wide_ui.c, game/oot_wide_sites.c, game/sites.def, game/sites/*, tests/test_wide_ui.py, tests/test_wide_sites.py), the item carousel or the Ultrawide menus code, and the PR's diff against main is the same 7 files as before.

Merged `main` @ a3591a98 into the branch (head `3c21b96a`, no conflicts). The measurements, taken on `main` @ 4d1e555f, still hold on this base: none of the 15 commits between 4d1e555f and a3591a98 touch the PR's files (`game/hos_wide_ui.c`, `game/oot_wide_sites.c`, `game/sites.def`, `game/sites/*`, `tests/test_wide_ui.py`, `tests/test_wide_sites.py`), the item carousel or the Ultrawide menus code, and the PR's diff against `main` is the same 7 files as before.
Author
Contributor

@Beanstalk linux, amd: this head (3c21b96a) against main @ a3591a98, the same steps on each.

  1. Graphics: Output resolution Custom 2560x1080 (21:9), Ultrawide menus Extended; restart the game so both apply from the start.
  2. Load the repo save kokiri-start. On the Insert menu's Debug tab, Inventory (Edit items), unlock every item in the Items section (the quantity ones set above 0), at least 14, then close the menu.
  3. Open the item quick select (L or R), turn right 6 times, and take a screenshot.

Expected on this PR: items drawn out to both screen edges. On main: only some of the items after the selection are drawn and the right part of the screen is empty. A longshot_log.txt from each side is welcome too.

@Beanstalk linux, amd: this head (`3c21b96a`) against `main` @ a3591a98, the same steps on each. 1. Graphics: Output resolution Custom 2560x1080 (21:9), Ultrawide menus **Extended**; restart the game so both apply from the start. 2. Load the repo save `kokiri-start`. On the Insert menu's Debug tab, Inventory (Edit items), unlock every item in the Items section (the quantity ones set above 0), at least 14, then close the menu. 3. Open the item quick select (L or R), turn right 6 times, and take a screenshot. Expected on this PR: items drawn out to both screen edges. On `main`: only some of the items after the selection are drawn and the right part of the screen is empty. A `longshot_log.txt` from each side is welcome too.
Member

@bulldogsajr22 only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@bulldogsajr22 only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The carousel fix is demonstrated on Windows, but CI and the requested Linux/AMD run are still pending. Nothing blocking is left. Recommend approval; not approved on the forge.

The change widens the item carousel before its engine counts slots, allowing more items to appear across an ultrawide screen. It adds a setup hook and allocates additional game cell layouts.

Checks: Still running: 10 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes. On Windows at 5120×2160 with Extended menus, the reported comparison increased the slot count from 10 to 13 and showed five items after the selection instead of three. The reported 32:9 run counted 18 slots.

Other systems: The hook also sees other lists; the reported Windows run found unchanged counts for the system load and challenge lists. Linux/AMD testing is pending. The added cell-layout memory cost is not measured.

Switches: None added, changed or removed.

Reviewed: 3c21b96a91 against a3591a98c9: Read the diff, commit messages, repository rules, PR template, standards, hook documentation, and the changed setup and layout code with its planner and restoration paths. Skimmed the remaining portions of the large changed code, test and site-table files; they were not all read in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The new setup path checks the pane index against the layout count before calculating the pane address.
  • The test exercises repeated setup and layout construction without compounding the width.
  • The functional commits record AI assistance.

Testing: No code or tests were run during this review. The author reports game-free checks and a Windows in-game comparison; CI is still running and the Linux/AMD Test Farm run is pending.

Overlaps and merge order: None found in the supplied PR information; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The carousel fix is demonstrated on Windows, but CI and the requested Linux/AMD run are still pending. Nothing blocking is left. Recommend approval; not approved on the forge. The change widens the item carousel before its engine counts slots, allowing more items to appear across an ultrawide screen. It adds a setup hook and allocates additional game cell layouts. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. On Windows at 5120×2160 with Extended menus, the reported comparison increased the slot count from 10 to 13 and showed five items after the selection instead of three. The reported 32:9 run counted 18 slots. **Other systems:** The hook also sees other lists; the reported Windows run found unchanged counts for the system load and challenge lists. Linux/AMD testing is pending. The added cell-layout memory cost is not measured. **Switches:** None added, changed or removed. **Reviewed:** 3c21b96a919c against a3591a98c9b2: Read the diff, commit messages, repository rules, PR template, standards, hook documentation, and the changed setup and layout code with its planner and restoration paths. Skimmed the remaining portions of the large changed code, test and site-table files; they were not all read in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The new setup path checks the pane index against the layout count before calculating the pane address. - The test exercises repeated setup and layout construction without compounding the width. - The functional commits record AI assistance. **Testing:** No code or tests were run during this review. The author reports game-free checks and a Windows in-game comparison; CI is still running and the Linux/AMD Test Farm run is pending. **Overlaps and merge order:** None found in the supplied PR information; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/ultrawide-carousel 2026-11-28 01:10:09 +00:00
Some checks are pending
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval changed since the request: ask again
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2621
No description provided.