feat(widescreen): the title screen's movies fill a wider screen (Fill title screen) #2988

Closed
SplitShotz wants to merge 3 commits from SplitShotz/Longshot:feat/title-movie-fill into main
Contributor

Summary

On a screen wider than 16:9, the title screen has black bars on both sides while the rest of the game fills the screen. Its background is a set of pre-rendered 16:9 movies (Event/Movie/Dm_Title_*.webm: Link riding across Hyrule Field, 0005, then the scenes it loops through, 0045 to 0095), and the movie site keeps every movie in the middle 16:9. To see it on main: 21:9 (or HOS_ASPECT=2.3889), Aspect ratio at the monitor's shape, Ultrawide menus at Extended, and wait on the title screen.

This zooms only the title screen's movies to the screen's full width, trimming what falls past its top and bottom (about 13% each at 21:9). The story movies keep their 16:9. A new Graphics row, Fill title screen, on by default and placed after Ultrawide menus, turns it off.

The same feature for mod-api's Rust game side, in the widescreen system mod, is #3016; this stays on main for the C game side until #2822 lands.

Read first: hos_movie_opened and hos_site_wide_movie in game/oot_wide_sites.c, and the lines at the end of host/nn_fs.c's OpenFile that tell it which movie the game opened.

  • host/nn_fs.c: each .webm read open that succeeds is passed to hos_movie_opened, once its handle is made (a movie that fails to open changes nothing) (declared in game/game.h, as hos_stand_in_damaged is).
  • game/oot_wide_sites.c: hos_movie_opened notes whether the movie is one of the title's in an atomic flag (relaxed exchange and load: the opening thread writes it, the movie draw's reads it; logged once per change: wide: the title screen's movies (...)). While it is, and the row is on, hos_site_wide_movie moves the viewport's top and bottom out by h * m / (1 - 2m) each, instead of narrowing its sides by m. Vulkan takes a viewport past the target, and the scissor (vk_draw.cpp) stays clamped to it.
  • game/options.h: HOS_OPT_TITLE_FILL = 104 (103 is taken by #2476). game/menu/rows.c: the row, key fill_title_screen, added to tests/test_menu_ini_keys.py's FROZEN.
  • docs/user/graphics-and-controls.md: the row's line in Every setting, after Ultrawide menus, and the ultrawide tip names the title screen as the exception to movies keeping 16:9.
  • With Ultrawide menus at Centred, the renderer's sides (vk_framegen.cpp wide_sides) still draw over the movie while no world is drawn, as for every movie: blurred, they now blur the zoomed movie instead of black. The row's help says so.

Testing

Tested: in the game, by the author, on Garuda Linux (kernel 7.3.5-zen), NVIDIA GeForce RTX 4060, driver 620.73.04, at 3440 x 1440 (21:9), the Aspect ratio at the monitor's shape: the title screen's movies, from Link riding across Hyrule Field on, fill the screen with no black bars beside them. Fill title screen does as its help says: off, the title's movies are back in the middle 16:9 with the bars. The game's other cutscenes play exactly as on main. With Ultrawide menus at Centred, blurred sides, the title screen looks right at 21:9 too: the zoomed movie under the blurred sides. On a 16:9 PC the title screen and the movies are as on main. After the review's fixes, a59f1d2 was built and run headless at 21:9 (own profile, HOS_FS_TRACE=1) from the intro into the title menu, about 8,900 frames in all: filled throughout, the bars back with the row off; the game opened one movie file in that time, Dm_Title_0005.webm.

Checks, on Linux (Garuda, clang):

  • tests/test_movie_shape.py: the title's movies at 21:9 and 32:9, the row off, 16:9, 16:10, and a story movie opened after the title. It fails on main (no hos_movie_opened) and passes here, with the existing seven cases.

  • tests/test_vcore_fs_open.py compiles the real hos_movie_opened and its flag with the real OpenFile: a title movie that opens selects the title's, a story movie that opens the story's; a story movie that fails to open, is left out (HOS_NO_MOVIES), is missing from the .nup's index, or is opened to write leaves the selection. It fails with the notification before the open (the earlier placement) and without it.

  • tests/test_wide_sites.py (every wide site against main's C, 6000 cases each), test_menu_ini_keys.py, test_menu_rows_model.py, test_menu_i18n.py, test_damaged_rom_files.py, test_fs_save_commit.py, test_vcore_fs_open.py, test_title_card_sites.py, test_hud_layout_row.py: pass. The last three fs fixtures compile OpenFile and get a stub for the new function, as they have for hos_ultrawide_redirect.

  • mise run test (mise 2026.11.16, the pinned tools, mise run test-deps's headers through LONGSHOT_VULKAN_HEADERS / LONGSHOT_SPIRV_HEADERS as CI sets them): 872 passed, 45 failed, 10 skipped. The run found test_settings_table.py wanting the row's line in the settings page; the second commit adds it, and it passes. The other 44 fail on main (56823e2) on this PC too, run there with the same tools:

    The 44 that fail on main too

    test_blocks_at_start.py test_bug_report.py test_control_picture.py test_crash_record.py test_crt_options.py test_dev_update.py test_draw_stream_visibility.py test_framegen_hdr.py test_framegen_resources.py test_fsr_uniform_ownership.py test_game_boundary.py test_guest_holes.py test_image_reaper_threads.py test_image_view_retry.py test_input_background.py test_keyboard_menu_option.py test_keyboard_option.py test_lifter.py test_linux_pressure.py test_loaded_modules_drop.py test_log_levels.py test_menu_keys.py test_menu_save_atomic.py test_oot_occ_raster.py test_option_ids.py test_perf_send.py test_pipeline_tour.py test_present_acquire_ahead.py test_present_image_free.py test_present_source_crop.py test_program_cache_cleanup.py test_program_cache_one_variant.py test_readback_timeout_reuse.py test_recording_admission.py test_screensaver.py test_switch_table.py test_target_retention.py test_temporal_present_bandwidth.py test_tex_desc_memo.py test_text_keyboard_policy.py test_upscaler_round_trip.py test_vram_compact.py test_windows_display_startup.py test_windows_on_linux.py

  • On a59f1d2 (after the review's fixes), run_all.py --strict --changed origin/main (the 51 checks that read the changed files): 47 passed, 1 skipped, and the 4 failures are among the 44 above.

  • The host's C for Windows, as CI's host-windows job runs it (scripts/check_host_compile.py, RX_TARGET=windows, RX_MARCH=x86-64-v3, llvm-mingw 20261104 from longshot_builder.py llvm-mingw, tools.lock's windows-x64 cpm), on a59f1d2: 118 host units, 0 failed. Linux: built and run in the game, as above. The new code compares the guest's path as bytes (strlen, _stricmp on its suffix, as OpenFile already does for .webm, and strstr), so a UTF-8 path is no different.

  • Rebased onto main 4e762a4 (ceb3fb2), without conflicts: run_all.py --strict --changed origin/main: 46 passed, 1 skipped, and the 4 failures are among the 44 above (test_oot_fov_rust.py first failed offline on #2353's new crate, then passed after cargo fetch --locked).

  • ruff 0.12.0 (the pinned version) passes on the changed tests; pre-commit passes except gitleaks, not installed here.

Still to test: None.

Measurements

Verdict: within the spread: with Fill title screen on, the title menu ran at a median 236.4 fps against 243.0 off (-2.7%, +0.11 ms median frame time), but the runs overlap (off 210 to 247 fps, on 233 to 245). It only applies on the title screen at a screen wider than 16:9; off, the movie site takes main's path.

Baseline: the row off in the same build, not main: off, the movie site takes main's path (the new branch is skipped), and a feat is measured on against off.

Setup: Garuda Linux (kernel 7.3.5-zen), RTX 4060, NVIDIA 620.73.04; a59f1d2 (dev.py game --quick), headless, 3440 x 1440 (HOS_OUTPUT_RES), HOS_ASPECT=2.3889, Ultrawide menus at Extended, uncapped (HOS_FPS_MAX=1000), V-Sync off; the title menu over the title's movie (no scene or route reaches it, so not dev.py ab): each run a dev.py queue run --mode timing job with its own profile and a pinned options file differing only in fill_title_screen, the title menu reached, 2400 frames of warm-up, then 13,000 frames (53 to 62 s) from RX_VK_FRAME_LOG. Interleaved off, on, three pairs, the median run.

Title menu, 3 pairs Before, Fill title screen off: this PR @ a59f1d2 After, Fill title screen on: this PR @ a59f1d2 Δ
fps (median run) 243.0 236.4 -2.7%
fps (runs) 246.7 / 210.1 / 243.0 245.2 / 236.4 / 233.3 within the spread
1% low (median run) 137.1 130.0
frame time median / p99 (median run, ms) 3.60 / 6.24 3.71 / 6.52 +0.11 / +0.28

On main 4e762a4 (rebased): the numbers are still a59f1d2's. The comparison is off against on in one build, and none of main's 8 new commits touches the movie site, the movie's draw or OpenFile.

Spread: the off side's second run was disturbed (it fell to 168 fps near its end) and each pair ran off first, so a PC slowing over the hour favours off; pair 1 alone: 246.7 against 245.2. The frame log is per present, not GPU time.

The runs
run1_fill0: 13107 frames over 53.1 s: fps 246.7, 1% low 139.5, median 3.535 ms, p99 5.884 ms
run2_fill1: 13110 frames over 53.5 s: fps 245.2, 1% low 139.0, median 3.566 ms, p99 5.904 ms
run3_fill0: 13075 frames over 62.2 s: fps 210.1, 1% low 97.6, median 3.872 ms, p99 9.204 ms
run4_fill1: 13100 frames over 55.4 s: fps 236.4, 1% low 130.0, median 3.713 ms, p99 6.522 ms
run5_fill0: 13103 frames over 53.9 s: fps 243.0, 1% low 137.1, median 3.601 ms, p99 6.240 ms
run6_fill1: 13103 frames over 56.2 s: fps 233.3, 1% low 123.9, median 3.719 ms, p99 7.301 ms
[hos MainThread] vk: switches set (10): HOS_CONTROL=<a path> (diag), LONGSHOT_BUILD_NAME=title fill frame times (diag), HOS_OUTPUT_RES=3440x1440 (player), HOS_ASPECT=2.3889 (player), HOS_FPS_MAX=1000 (player), RX_VK_FRAME_LOG=<a path> (diag), LONGSHOT_PROFILE=<a path> (player), HOS_HEADLESS=1 (diag), HOS_AUDIO=0 (kill), HOS_ENV_FILE=<a path> (diag)

Each run's options file: ultrawide_menus=3 and fill_title_screen=0 or 1; every run's log has the same switches (one lists them in another order).

Risks

Only the title screen on a screen wider than 16:9 changes. If the game opened a title movie file while a story movie plays, that story movie would be zoomed too; the log line says which movie was opened last. Turn it off with Fill title screen. After updating, players on a wider screen see the title screen filled; longshot_options.ini gets a fill_title_screen line when the menu saves.

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).
  • 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 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 this comment: 21:9, Fill title screen off, main's path, and on)
  • Docs updated.
  • 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 On a screen wider than 16:9, the title screen has black bars on both sides while the rest of the game fills the screen. Its background is a set of pre-rendered 16:9 movies (`Event/Movie/Dm_Title_*.webm`: Link riding across Hyrule Field, `0005`, then the scenes it loops through, `0045` to `0095`), and the movie site keeps every movie in the middle 16:9. To see it on `main`: 21:9 (or `HOS_ASPECT=2.3889`), Aspect ratio at the monitor's shape, Ultrawide menus at Extended, and wait on the title screen. This zooms only the title screen's movies to the screen's full width, trimming what falls past its top and bottom (about 13% each at 21:9). The story movies keep their 16:9. A new Graphics row, **Fill title screen**, on by default and placed after Ultrawide menus, turns it off. The same feature for `mod-api`'s Rust game side, in the widescreen system mod, is #3016; this stays on `main` for the C game side until #2822 lands. Read first: `hos_movie_opened` and `hos_site_wide_movie` in `game/oot_wide_sites.c`, and the lines at the end of `host/nn_fs.c`'s `OpenFile` that tell it which movie the game opened. - `host/nn_fs.c`: each `.webm` read open that succeeds is passed to `hos_movie_opened`, once its handle is made (a movie that fails to open changes nothing) (declared in `game/game.h`, as `hos_stand_in_damaged` is). - `game/oot_wide_sites.c`: `hos_movie_opened` notes whether the movie is one of the title's in an atomic flag (relaxed exchange and load: the opening thread writes it, the movie draw's reads it; logged once per change: `wide: the title screen's movies (...)`). While it is, and the row is on, `hos_site_wide_movie` moves the viewport's top and bottom out by `h * m / (1 - 2m)` each, instead of narrowing its sides by `m`. Vulkan takes a viewport past the target, and the scissor (`vk_draw.cpp`) stays clamped to it. - `game/options.h`: `HOS_OPT_TITLE_FILL = 104` (103 is taken by #2476). `game/menu/rows.c`: the row, key `fill_title_screen`, added to `tests/test_menu_ini_keys.py`'s FROZEN. - `docs/user/graphics-and-controls.md`: the row's line in Every setting, after Ultrawide menus, and the ultrawide tip names the title screen as the exception to movies keeping 16:9. - With Ultrawide menus at Centred, the renderer's sides (`vk_framegen.cpp` `wide_sides`) still draw over the movie while no world is drawn, as for every movie: blurred, they now blur the zoomed movie instead of black. The row's help says so. ## Testing **Tested:** in the game, by the author, on Garuda Linux (kernel 7.3.5-zen), NVIDIA GeForce RTX 4060, driver 620.73.04, at 3440 x 1440 (21:9), the Aspect ratio at the monitor's shape: the title screen's movies, from Link riding across Hyrule Field on, fill the screen with no black bars beside them. Fill title screen does as its help says: off, the title's movies are back in the middle 16:9 with the bars. The game's other cutscenes play exactly as on `main`. With Ultrawide menus at Centred, blurred sides, the title screen looks right at 21:9 too: the zoomed movie under the blurred sides. On a 16:9 PC the title screen and the movies are as on `main`. After the review's fixes, a59f1d2 was built and run headless at 21:9 (own profile, `HOS_FS_TRACE=1`) from the intro into the title menu, about 8,900 frames in all: filled throughout, the bars back with the row off; the game opened one movie file in that time, `Dm_Title_0005.webm`. Checks, on Linux (Garuda, clang): - `tests/test_movie_shape.py`: the title's movies at 21:9 and 32:9, the row off, 16:9, 16:10, and a story movie opened after the title. It fails on `main` (no `hos_movie_opened`) and passes here, with the existing seven cases. - `tests/test_vcore_fs_open.py` compiles the real `hos_movie_opened` and its flag with the real `OpenFile`: a title movie that opens selects the title's, a story movie that opens the story's; a story movie that fails to open, is left out (`HOS_NO_MOVIES`), is missing from the `.nup`'s index, or is opened to write leaves the selection. It fails with the notification before the open (the earlier placement) and without it. - `tests/test_wide_sites.py` (every wide site against main's C, 6000 cases each), `test_menu_ini_keys.py`, `test_menu_rows_model.py`, `test_menu_i18n.py`, `test_damaged_rom_files.py`, `test_fs_save_commit.py`, `test_vcore_fs_open.py`, `test_title_card_sites.py`, `test_hud_layout_row.py`: pass. The last three `fs` fixtures compile `OpenFile` and get a stub for the new function, as they have for `hos_ultrawide_redirect`. - `mise run test` (mise 2026.11.16, the pinned tools, `mise run test-deps`'s headers through `LONGSHOT_VULKAN_HEADERS` / `LONGSHOT_SPIRV_HEADERS` as CI sets them): 872 passed, 45 failed, 10 skipped. The run found `test_settings_table.py` wanting the row's line in the settings page; the second commit adds it, and it passes. The other 44 fail on `main` (56823e2) on this PC too, run there with the same tools: <details><summary>The 44 that fail on main too</summary> `test_blocks_at_start.py` `test_bug_report.py` `test_control_picture.py` `test_crash_record.py` `test_crt_options.py` `test_dev_update.py` `test_draw_stream_visibility.py` `test_framegen_hdr.py` `test_framegen_resources.py` `test_fsr_uniform_ownership.py` `test_game_boundary.py` `test_guest_holes.py` `test_image_reaper_threads.py` `test_image_view_retry.py` `test_input_background.py` `test_keyboard_menu_option.py` `test_keyboard_option.py` `test_lifter.py` `test_linux_pressure.py` `test_loaded_modules_drop.py` `test_log_levels.py` `test_menu_keys.py` `test_menu_save_atomic.py` `test_oot_occ_raster.py` `test_option_ids.py` `test_perf_send.py` `test_pipeline_tour.py` `test_present_acquire_ahead.py` `test_present_image_free.py` `test_present_source_crop.py` `test_program_cache_cleanup.py` `test_program_cache_one_variant.py` `test_readback_timeout_reuse.py` `test_recording_admission.py` `test_screensaver.py` `test_switch_table.py` `test_target_retention.py` `test_temporal_present_bandwidth.py` `test_tex_desc_memo.py` `test_text_keyboard_policy.py` `test_upscaler_round_trip.py` `test_vram_compact.py` `test_windows_display_startup.py` `test_windows_on_linux.py` </details> - On a59f1d2 (after the review's fixes), `run_all.py --strict --changed origin/main` (the 51 checks that read the changed files): 47 passed, 1 skipped, and the 4 failures are among the 44 above. - The host's C for Windows, as CI's `host-windows` job runs it (`scripts/check_host_compile.py`, `RX_TARGET=windows`, `RX_MARCH=x86-64-v3`, llvm-mingw 20261104 from `longshot_builder.py llvm-mingw`, tools.lock's windows-x64 cpm), on a59f1d2: 118 host units, 0 failed. Linux: built and run in the game, as above. The new code compares the guest's path as bytes (`strlen`, `_stricmp` on its suffix, as `OpenFile` already does for `.webm`, and `strstr`), so a UTF-8 path is no different. - Rebased onto `main` 4e762a4 (ceb3fb2), without conflicts: `run_all.py --strict --changed origin/main`: 46 passed, 1 skipped, and the 4 failures are among the 44 above (`test_oot_fov_rust.py` first failed offline on #2353's new crate, then passed after `cargo fetch --locked`). - ruff 0.12.0 (the pinned version) passes on the changed tests; pre-commit passes except `gitleaks`, not installed here. **Still to test:** None. ## Measurements **Verdict:** within the spread: with Fill title screen on, the title menu ran at a median 236.4 fps against 243.0 off (-2.7%, +0.11 ms median frame time), but the runs overlap (off 210 to 247 fps, on 233 to 245). It only applies on the title screen at a screen wider than 16:9; off, the movie site takes `main`'s path. Baseline: the row off in the same build, not `main`: off, the movie site takes `main`'s path (the new branch is skipped), and a `feat` is measured on against off. Setup: Garuda Linux (kernel 7.3.5-zen), RTX 4060, NVIDIA 620.73.04; a59f1d2 (`dev.py game --quick`), headless, 3440 x 1440 (`HOS_OUTPUT_RES`), `HOS_ASPECT=2.3889`, Ultrawide menus at Extended, uncapped (`HOS_FPS_MAX=1000`), V-Sync off; the title menu over the title's movie (no scene or route reaches it, so not `dev.py ab`): each run a `dev.py queue run --mode timing` job with its own profile and a pinned options file differing only in `fill_title_screen`, the title menu reached, 2400 frames of warm-up, then 13,000 frames (53 to 62 s) from `RX_VK_FRAME_LOG`. Interleaved off, on, three pairs, the median run. | Title menu, 3 pairs | Before, Fill title screen off: this PR @ a59f1d2 | After, Fill title screen on: this PR @ a59f1d2 | Δ | |---|---|---|---| | fps (median run) | 243.0 | 236.4 | -2.7% | | fps (runs) | 246.7 / 210.1 / 243.0 | 245.2 / 236.4 / 233.3 | within the spread | | 1% low (median run) | 137.1 | 130.0 | | | frame time median / p99 (median run, ms) | 3.60 / 6.24 | 3.71 / 6.52 | +0.11 / +0.28 | On `main` 4e762a4 (rebased): the numbers are still a59f1d2's. The comparison is off against on in one build, and none of `main`'s 8 new commits touches the movie site, the movie's draw or OpenFile. Spread: the off side's second run was disturbed (it fell to 168 fps near its end) and each pair ran off first, so a PC slowing over the hour favours off; pair 1 alone: 246.7 against 245.2. The frame log is per present, not GPU time. <details><summary>The runs</summary> ``` run1_fill0: 13107 frames over 53.1 s: fps 246.7, 1% low 139.5, median 3.535 ms, p99 5.884 ms run2_fill1: 13110 frames over 53.5 s: fps 245.2, 1% low 139.0, median 3.566 ms, p99 5.904 ms run3_fill0: 13075 frames over 62.2 s: fps 210.1, 1% low 97.6, median 3.872 ms, p99 9.204 ms run4_fill1: 13100 frames over 55.4 s: fps 236.4, 1% low 130.0, median 3.713 ms, p99 6.522 ms run5_fill0: 13103 frames over 53.9 s: fps 243.0, 1% low 137.1, median 3.601 ms, p99 6.240 ms run6_fill1: 13103 frames over 56.2 s: fps 233.3, 1% low 123.9, median 3.719 ms, p99 7.301 ms [hos MainThread] vk: switches set (10): HOS_CONTROL=<a path> (diag), LONGSHOT_BUILD_NAME=title fill frame times (diag), HOS_OUTPUT_RES=3440x1440 (player), HOS_ASPECT=2.3889 (player), HOS_FPS_MAX=1000 (player), RX_VK_FRAME_LOG=<a path> (diag), LONGSHOT_PROFILE=<a path> (player), HOS_HEADLESS=1 (diag), HOS_AUDIO=0 (kill), HOS_ENV_FILE=<a path> (diag) ``` Each run's options file: `ultrawide_menus=3` and `fill_title_screen=0` or `1`; every run's log has the same switches (one lists them in another order). </details> ## Risks Only the title screen on a screen wider than 16:9 changes. If the game opened a title movie file while a story movie plays, that story movie would be zoomed too; the log line says which movie was opened last. Turn it off with Fill title screen. After updating, players on a wider screen see the title screen filled; `longshot_options.ini` gets a `fill_title_screen` line when the menu saves. ## 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). - [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 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 this comment](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2988#issuecomment-96829): 21:9, Fill title screen off, `main`'s path, and on) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [x] 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)
feat(widescreen): the title screen's movies fill a wider screen (Fill title screen)
Some checks failed
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
1271070e38
On a picture wider than 16:9 the title screen's movies (Event/Movie/Dm_Title_*.webm: Link riding across Hyrule
Field and the scenes after it) were drawn in the middle 16:9 with black beside them, as every movie is, so the
title screen had bars while the rest of the game filled the screen.

host/nn_fs.c tells game/oot_wide_sites.c which movie the game opens (hos_movie_opened); while it is one of the
title's, the movie site moves the viewport's top and bottom out instead of narrowing its sides: the 16:9 movie at
the picture's full width, the top and bottom past it cut off. The story movies keep their 16:9. A new Graphics row,
Fill title screen (fill_title_screen, option 104), on by default, turns it off.

tests/test_movie_shape.py checks the title's movies at 21:9 and 32:9, the row off, 16:9 and 16:10, and a story movie
after the title; the fixtures that compile nn_fs.c and oot_wide_sites.c get the new function and option.

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

Tested in game: Garuda Linux (kernel 7.3.5-zen), NVIDIA GeForce RTX 4060, driver 620.73.04, 3440 x 1440 (21:9): the title screen's movies, from Link riding across Hyrule Field on, fill the screen with no black bars; Fill title screen off puts them back in the middle 16:9; the other cutscenes play as on main; Ultrawide menus at Centred, blurred sides looks right too. On a 16:9 PC the title screen is as on main.

Tested in game: Garuda Linux (kernel 7.3.5-zen), NVIDIA GeForce RTX 4060, driver 620.73.04, 3440 x 1440 (21:9): the title screen's movies, from Link riding across Hyrule Field on, fill the screen with no black bars; Fill title screen off puts them back in the middle 16:9; the other cutscenes play as on main; Ultrawide menus at Centred, blurred sides looks right too. On a 16:9 PC the title screen is as on main.
Member

Possibly related, for context:

  • PR #2358 fix(video): movies keep their 16:9 shape on screens narrower than 16:9 — Existing movie viewport framing logic this builds on
  • issue #291 Idea: Pillarbox cutscenes when using ultrawide — Related idea about cutscene framing on ultrawide
Possibly related, for context: - PR #2358 fix(video): movies keep their 16:9 shape on screens narrower than 16:9 — Existing movie viewport framing logic this builds on - issue #291 Idea: Pillarbox cutscenes when using ultrawide — Related idea about cutscene framing on ultrawide
docs(widescreen): Fill title screen in the settings page's table
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
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
f2c01e0071
tests/test_settings_table.py wants a line for every menu row, in the menu's
order: Fill title screen after Ultrawide menus. The ultrawide tip says the
title screen's movies are the exception to movies keeping 16:9.

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

Ran the full mise run test: 872 passed, 45 failed, 10 skipped. test_settings_table.py wanted the new row's line in docs/user/graphics-and-controls.md; f2c01e0 adds it and it passes. The other 44 fail the same way on main (56823e2) on this PC; Testing lists them.

Ran the full mise run test: 872 passed, 45 failed, 10 skipped. test_settings_table.py wanted the new row's line in docs/user/graphics-and-controls.md; f2c01e0 adds it and it passes. The other 44 fail the same way on main (56823e2) on this PC; Testing lists them.
Author
Contributor

Ran CI's host-windows check here (check_host_compile.py with llvm-mingw 20261104): 118 host units, 0 failed. Added the Windows/Linux host-code and Docs updated boxes.

Ran CI's host-windows check here (check_host_compile.py with llvm-mingw 20261104): 118 host units, 0 failed. Added the Windows/Linux host-code and Docs updated boxes.
Member
@review
BeanBot left a comment

Recommendation: Request changes. The movie selection is shared across threads without synchronization, so the wrong movie can be cropped. The viewport change has worked on one Linux/NVIDIA system, but the affected Tier 1 systems and its frame-time cost remain untested.

The title movies can fill an ultrawide picture by cropping their top and bottom, with a menu option to retain the original framing. The viewport calculation is small, but identifying the displayed movie through a process-wide last-open flag introduces correctness and synchronization risks.

Blocking (1): must change before merging.

  1. L1 game/oot_wide_sites.c:236: The movie flag is accessed concurrently without synchronization; volatile does not make these accesses atomic or establish ordering. (more on the line) Do: Use an atomic load and store, or protect all accesses with a suitable lock, and update the fixture to exercise the synchronized implementation.

Should fix (1): not blocking, but worth doing before merging.

  • L2 tests/test_movie_shape.py:72: The new test calls the notification directly, so it does not test that OpenFile sends it or that failed opens leave the active selection alone. (more on the line) Do: Add a game-free filesystem integration case that opens a title movie, checks the notification and resulting selection, and covers a failed movie open.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3: The expanded Vulkan viewport has not been exercised on the other affected Tier 1 systems. When: The only reported ultrawide game run uses NVIDIA on Linux, leaving Windows, AMD/RADV and Steam Deck behavior of the changed movie path unverified. Do: Run the title and a subsequent story movie, with fill on and off, on affected Tier 1 Windows and Linux hardware, including AMD/RADV and Steam Deck; compare screenshots of the same title scene against main.
  • L4: The feature's frame-time cost has not been measured as required by the project's feature measurement rule. When: The title draw covers more of the target with fill enabled, and the reported testing contains no on/off frame times to show its cost. Do: Measure frame time and FPS with fill on and off in the same title scene and settings, using interleaved runs and reporting the spread.

@fix can do L1 and L2.

Questions (2) (not confirmed from the code; they don't hold the recommendation)

  • Can the game open the next movie before the current one finishes? If so, even successful opens can switch the process-wide flag before the displayed movie changes.
  • host/nn_fs.c:1214: Can the game attempt a failed title or story movie open while a different movie is still displayed?

Checks: Still running: 10 checks.

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

Does it help: Yes for the feature on the author's Garuda Linux/RTX 4060 run: the title filled a 3440 × 1440 screen and turning the option off restored the bars. The frame-time cost is unproven; no on/off measurements were reported.

Other systems: The movie hook also handles story movies and runs independently of the GPU vendor. The expanded viewport reaches Vulkan on Windows and Linux; NVIDIA/Linux was tested in game, but AMD/RADV, Windows and Steam Deck runs are not reported. The 16:9 and narrower paths retain the existing calculation in the source.

Switches: Fill title screen is a new saved player option, on by default. Its default is a presentation preference; the reported run shows it works on one setup, but does not establish behavior on the other affected systems. No environment switch was added.

Reviewed: f2c01e0071 against 56823e27a1: Read the repository rules, standards, pull request template, diff and commits; inspected the changed game code, movie test and file-open path, and the renderer viewport and scissor handling. Skimmed the larger filesystem tests, menu-key test, graphics guide and wide-site test; the combined output for the full-file reads was truncated. Tooling's adjacent AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review).

Checked and fine:

  • Both commits carry AI assistance trailers.
  • The new saved menu key is listed in FROZEN and the settings table documents the row.
  • No generated files, third-party files or game-derived files appear in the diff.
  • The existing scissor is clamped to the render target while the viewport is passed through.

Testing: No code or tests were run, as requested. The author's reported game run and checks were considered; CI is still running.

Overlaps and merge order: The description reserves option ID 103 for #2476; this change uses 104. No other overlap was established from the available checkout.


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

**Recommendation: Request changes.** The movie selection is shared across threads without synchronization, so the wrong movie can be cropped. The viewport change has worked on one Linux/NVIDIA system, but the affected Tier 1 systems and its frame-time cost remain untested. The title movies can fill an ultrawide picture by cropping their top and bottom, with a menu option to retain the original framing. The viewport calculation is small, but identifying the displayed movie through a process-wide last-open flag introduces correctness and synchronization risks. **Blocking (1)**: must change before merging. 1. **L1** `game/oot_wide_sites.c:236`: The movie flag is accessed concurrently without synchronization; volatile does not make these accesses atomic or establish ordering. (more on the line) **Do:** Use an atomic load and store, or protect all accesses with a suitable lock, and update the fixture to exercise the synchronized implementation. **Should fix (1)**: not blocking, but worth doing before merging. - **L2** `tests/test_movie_shape.py:72`: The new test calls the notification directly, so it does not test that OpenFile sends it or that failed opens leave the active selection alone. (more on the line) **Do:** Add a game-free filesystem integration case that opens a title movie, checks the notification and resulting selection, and covers a failed movie open. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The expanded Vulkan viewport has not been exercised on the other affected Tier 1 systems. *When:* The only reported ultrawide game run uses NVIDIA on Linux, leaving Windows, AMD/RADV and Steam Deck behavior of the changed movie path unverified. **Do:** Run the title and a subsequent story movie, with fill on and off, on affected Tier 1 Windows and Linux hardware, including AMD/RADV and Steam Deck; compare screenshots of the same title scene against main. - **L4**: The feature's frame-time cost has not been measured as required by the project's feature measurement rule. *When:* The title draw covers more of the target with fill enabled, and the reported testing contains no on/off frame times to show its cost. **Do:** Measure frame time and FPS with fill on and off in the same title scene and settings, using interleaved runs and reporting the spread. `@fix` can do L1 and L2. **Questions (2)** (not confirmed from the code; they don't hold the recommendation) - Can the game open the next movie before the current one finishes? If so, even successful opens can switch the process-wide flag before the displayed movie changes. - `host/nn_fs.c:1214`: Can the game attempt a failed title or story movie open while a different movie is still displayed? **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the feature on the author's Garuda Linux/RTX 4060 run: the title filled a 3440 × 1440 screen and turning the option off restored the bars. The frame-time cost is unproven; no on/off measurements were reported. **Other systems:** The movie hook also handles story movies and runs independently of the GPU vendor. The expanded viewport reaches Vulkan on Windows and Linux; NVIDIA/Linux was tested in game, but AMD/RADV, Windows and Steam Deck runs are not reported. The 16:9 and narrower paths retain the existing calculation in the source. **Switches:** Fill title screen is a new saved player option, on by default. Its default is a presentation preference; the reported run shows it works on one setup, but does not establish behavior on the other affected systems. No environment switch was added. **Reviewed:** f2c01e007126 against 56823e27a13a: Read the repository rules, standards, pull request template, diff and commits; inspected the changed game code, movie test and file-open path, and the renderer viewport and scissor handling. Skimmed the larger filesystem tests, menu-key test, graphics guide and wide-site test; the combined output for the full-file reads was truncated. Tooling's adjacent AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review). **Checked and fine:** - Both commits carry AI assistance trailers. - The new saved menu key is listed in FROZEN and the settings table documents the row. - No generated files, third-party files or game-derived files appear in the diff. - The existing scissor is clamped to the render target while the viewport is passed through. **Testing:** No code or tests were run, as requested. The author's reported game run and checks were considered; CI is still running. **Overlaps and merge order:** The description reserves option ID 103 for #2476; this change uses 104. No other overlap was established from the available checkout. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -231,0 +233,4 @@
each movie file. They are scenery under the title's own layout (Title_00, placed as the menus are), so on a wider picture
the movie site zooms them to its width (the Fill title screen row, HOS_OPT_TITLE_FILL) instead of leaving black beside
them. The story movies keep their 16:9 */
static volatile int title_movie;
Member

L1 (blocking): The movie flag is accessed concurrently without synchronization; volatile does not make these accesses atomic or establish ordering.

When: OpenFile gives up its virtual core before calling hos_movie_opened, so a file-opening thread can write title_movie while a game thread executing the movie draw reads it. This is a C data race, and the draw can use an invalid or stale selection.

Do: Use an atomic load and store, or protect all accesses with a suitable lock, and update the fixture to exercise the synchronized implementation.

**L1** (blocking): The movie flag is accessed concurrently without synchronization; volatile does not make these accesses atomic or establish ordering. *When:* OpenFile gives up its virtual core before calling hos_movie_opened, so a file-opening thread can write title_movie while a game thread executing the movie draw reads it. This is a C data race, and the draw can use an invalid or stale selection. **Do:** Use an atomic load and store, or protect all accesses with a suitable lock, and update the fixture to exercise the synchronized implementation.
@ -57,6 +69,8 @@ static int check(const char *name, float ratio, float margin, const float expect
memcpy(mem + VP + 8, original, sizeof original);
hos_wide_ratio = ratio;
hos_wide_margin = margin;
hos_movie_opened(path);
Member

L2 (should fix): The new test calls the notification directly, so it does not test that OpenFile sends it or that failed opens leave the active selection alone.

When: Removing the hos_movie_opened call from OpenFile still leaves all the new title-shape cases passing, while title movies in the game no longer fill the screen.

Do: Add a game-free filesystem integration case that opens a title movie, checks the notification and resulting selection, and covers a failed movie open.

**L2** (should fix): The new test calls the notification directly, so it does not test that OpenFile sends it or that failed opens leave the active selection alone. *When:* Removing the hos_movie_opened call from OpenFile still leaves all the new title-shape cases passing, while title movies in the game no longer fill the screen. **Do:** Add a game-free filesystem integration case that opens a title movie, checks the notification and resulting selection, and covers a failed movie open.
Author
Contributor

Screenshots: the title screen's first movie (Link riding across Hyrule Field) at 3440 x 1440 (21:9), Aspect ratio at the monitor's shape (HOS_ASPECT=2.3889), Ultrawide menus at Extended. One headless run of f2c01e0 (dev.py game --quick, longshot_ctl.py launch --profile test), Fill title screen set through the bridge between the two shots, about 90 frames apart. Off takes main's path through hos_site_wide_movie (the new branch is skipped), so it is the same picture as main.

Fill title screen off (as on main):

Fill title screen off, as main

Fill title screen on (this pull request):

Fill title screen on

Screenshots: the title screen's first movie (Link riding across Hyrule Field) at 3440 x 1440 (21:9), Aspect ratio at the monitor's shape (`HOS_ASPECT=2.3889`), Ultrawide menus at Extended. One headless run of f2c01e0 (`dev.py game --quick`, `longshot_ctl.py launch --profile test`), Fill title screen set through the bridge between the two shots, about 90 frames apart. Off takes `main`'s path through `hos_site_wide_movie` (the new branch is skipped), so it is the same picture as `main`. **Fill title screen off (as on `main`):** ![Fill title screen off, as main](https://git.magicbean.dev/attachments/8f970555-c95d-4056-88eb-0091828b46dc) **Fill title screen on (this pull request):** ![Fill title screen on](https://git.magicbean.dev/attachments/d2051eeb-0ce8-4ab0-907d-9ad6f3fa16c9)
Author
Contributor

Screenshots added (comment above); ticked their box.

Screenshots added (comment above); ticked their box.
fix(widescreen): the title movie flag is atomic, told only by a movie that opened
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
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
a59f1d23bb
The review of #2988 (L1, L2): title_movie was written by the thread that opens the movie file and read by the movie
draw's through a volatile int, a data race in C; it is now an atomic exchange and load (relaxed: it guards no other
data). OpenFile told hos_movie_opened before the open was resolved, so a movie that then failed to open (not found,
left out by HOS_NO_MOVIES, missing from the .nup's index) switched the selection anyway; it is now told after the
handle is made.

tests/test_vcore_fs_open.py compiles the actual hos_movie_opened with OpenFile and checks the selection through it:
a title movie that opens selects the title's, a story movie the story's, and a failed, left-out, missing or write open
leaves it. It fails on the earlier placement and without the call.

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

Description updated for a59f1d2: OpenFile tells the movie site only after a successful open, the flag is atomic, the new test_vcore_fs_open cases, and the checks and game run on a59f1d2.

Description updated for a59f1d2: OpenFile tells the movie site only after a successful open, the flag is atomic, the new test_vcore_fs_open cases, and the checks and game run on a59f1d2.
Author
Contributor

Thanks for the review. a59f1d2 fixes L1 and L2:

  • L1: title_movie is now a plain int written with __atomic_exchange_n and read with __atomic_load_n, both relaxed, since the flag protects no other data. The exchange also makes the "logged once per change" line race-free. tests/test_movie_shape.py cuts the new code out of oot_wide_sites.c as before, so its fixture runs the atomic version.

  • L2: OpenFile now tells hos_movie_opened only after the handle is made, just before RET(0). tests/test_vcore_fs_open.py compiles the real hos_movie_opened and its flag together with the real OpenFile and checks the selection:

    • a title movie that opens selects the title's, and a story movie that opens selects the story's;
    • a story movie that fails to open, is left out by HOS_NO_MOVIES, is missing from the .nup's index, or is opened to write leaves the selection unchanged.

    The test fails on f2c01e0's placement (the failed-open cases) and with the call removed (the selection cases).

Questions:

  • A failed movie open while another movie shows: fixed by L2, so a failed open no longer changes anything.
  • Opening the next movie early: not during the title. I ran a59f1d2 headless at 21:9 with HOS_FS_TRACE=1, from the intro into the title menu, about 8,900 frames in all (4,300 of them on the menu). In that time the game opened one movie file, Dm_Title_0005.webm, which holds the intro and the menu's scenes, and nothing else. I haven't traced the step from the title into the first story movie. If that story movie were opened before the title's stopped, the title would fall back to 16:9 for those frames, which is main's framing. A story movie could only be zoomed if a title movie file were opened while it plays.

L3 / L4: still open. L3 needs Windows, AMD/RADV and Steam Deck runs, which I can't do on this PC, and L4's interleaved on/off frame-time runs haven't been done yet. The Tier 1 box stays unticked.

The run (fill off, fill on, then the title menu later on, all at 3440 x 1440):

a59f1d2 at 21:9: fill off, on, and the title menu

Thanks for the review. a59f1d2 fixes L1 and L2: - **L1:** `title_movie` is now a plain `int` written with `__atomic_exchange_n` and read with `__atomic_load_n`, both relaxed, since the flag protects no other data. The exchange also makes the "logged once per change" line race-free. `tests/test_movie_shape.py` cuts the new code out of `oot_wide_sites.c` as before, so its fixture runs the atomic version. - **L2:** `OpenFile` now tells `hos_movie_opened` only after the handle is made, just before `RET(0)`. `tests/test_vcore_fs_open.py` compiles the real `hos_movie_opened` and its flag together with the real `OpenFile` and checks the selection: - a title movie that opens selects the title's, and a story movie that opens selects the story's; - a story movie that fails to open, is left out by `HOS_NO_MOVIES`, is missing from the `.nup`'s index, or is opened to write leaves the selection unchanged. The test fails on f2c01e0's placement (the failed-open cases) and with the call removed (the selection cases). **Questions:** - *A failed movie open while another movie shows:* fixed by L2, so a failed open no longer changes anything. - *Opening the next movie early:* not during the title. I ran a59f1d2 headless at 21:9 with `HOS_FS_TRACE=1`, from the intro into the title menu, about 8,900 frames in all (4,300 of them on the menu). In that time the game opened one movie file, `Dm_Title_0005.webm`, which holds the intro and the menu's scenes, and nothing else. I haven't traced the step from the title into the first story movie. If that story movie were opened before the title's stopped, the title would fall back to 16:9 for those frames, which is `main`'s framing. A story movie could only be zoomed if a title movie file were opened while it plays. **L3 / L4:** still open. L3 needs Windows, AMD/RADV and Steam Deck runs, which I can't do on this PC, and L4's interleaved on/off frame-time runs haven't been done yet. The Tier 1 box stays unticked. The run (fill off, fill on, then the title menu later on, all at 3440 x 1440): ![a59f1d2 at 21:9: fill off, on, and the title menu](https://git.magicbean.dev/attachments/469d9474-b58c-4fa0-b4fd-f092ff897123)
Owner

Please rebase on mod-api branch!

Please rebase on mod-api branch!
Author
Contributor

Measured (L4): Fill title screen off against on on the title menu at 21:9, 3 interleaved pairs on a59f1d2: 243.0 against 236.4 fps (median run), +0.11 ms median frame time, within the spread (off 210 to 247, on 233 to 245). Measurements has the table, setup and the runs.

Measured (L4): Fill title screen off against on on the title menu at 21:9, 3 interleaved pairs on a59f1d2: 243.0 against 236.4 fps (median run), +0.11 ms median frame time, within the spread (off 210 to 247, on 233 to 245). Measurements has the table, setup and the runs.
SplitShotz force-pushed feat/title-movie-fill from a59f1d23bb
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
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
to ceb3fb2ccf
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
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
2026-12-02 16:40:57 +00:00
Compare
Author
Contributor

Rebased onto main 4e762a4 (ceb3fb2), no conflicts; the checks that read the changed files pass as before. Description: the rebase, why the measurements still hold, and the mod-api version, #3016.

Rebased onto main 4e762a4 (ceb3fb2), no conflicts; the checks that read the changed files pass as before. Description: the rebase, why the measurements still hold, and the mod-api version, #3016.
Author
Contributor

@HumanBean thanks. I looked into rebasing this onto mod-api, and it can't be a plain rebase: the three C files this PR mostly changes (game/oot_wide_sites.c, game/menu/rows.c, game/options.h) don't exist there, since the widescreen code is the Rust system mod in game/mods/widescreen. So I've done both:

  • #3016, into mod-api: the same feature ported to the widescreen mod. A fill_title_screen toggle in its mod.toml, wide::movie zooming the title's movies, an atomic flag in state.rs, and OpenFile telling it through a new game.h export (hos_movie_opened, after a successful open). Rust and tests/ checks, the Windows host compile, and a 21:9 game run with screenshots are in its description.
  • This PR stays on main: players run the C game side until #2822 is merged, and #2822 is still open. Keeping both means the title screen fills a wide screen whichever lands first, and if #2822 merges, #3016 carries the feature over. The setting's key and values are the same in both, so a player's longshot_options.ini reads the same either way.

If you'd rather only have the mod-api version, say so and I'll close this one.

@HumanBean thanks. I looked into rebasing this onto `mod-api`, and it can't be a plain rebase: the three C files this PR mostly changes (`game/oot_wide_sites.c`, `game/menu/rows.c`, `game/options.h`) don't exist there, since the widescreen code is the Rust system mod in `game/mods/widescreen`. So I've done both: - **#3016, into `mod-api`:** the same feature ported to the widescreen mod. A `fill_title_screen` toggle in its `mod.toml`, `wide::movie` zooming the title's movies, an atomic flag in `state.rs`, and `OpenFile` telling it through a new `game.h` export (`hos_movie_opened`, after a successful open). Rust and `tests/` checks, the Windows host compile, and a 21:9 game run with screenshots are in its description. - **This PR stays on `main`:** players run the C game side until #2822 is merged, and #2822 is still open. Keeping both means the title screen fills a wide screen whichever lands first, and if #2822 merges, #3016 carries the feature over. The setting's key and values are the same in both, so a player's `longshot_options.ini` reads the same either way. If you'd rather only have the `mod-api` version, say so and I'll close this one.
SplitShotz changed title from WIP: feat(widescreen): the title screen's movies fill a wider screen (Fill title screen) to feat(widescreen): the title screen's movies fill a wider screen (Fill title screen) 2026-12-02 16:57:21 +00:00
Owner

We're going to merge mod-api branch very soon so let's keep that version only

We're going to merge mod-api branch very soon so let's keep that version only
HumanBean closed this pull request 2026-12-02 21:38:41 +00:00
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
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

Pull request closed

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!2988
No description provided.