Skip to content

Widescreen in 1P/2P matches, and QUIT GAME in PC SETTINGS - #112

Merged
boubou666 merged 1 commit into
mainfrom
claude/quit-and-widescreen
Nov 26, 2026
Merged

boubou666 merged 1 commit into
mainfrom
claude/quit-and-widescreen

Conversation

@boubou666

Copy link
Copy Markdown
Collaborator

Widescreen (16:9), off by default. It can be switched on in four places:

  • F2 → Video → Widescreen.
  • PC SETTINGS → Video → WIDESCREEN.
  • widescreen = on in video.ini.
  • The PS2X_WIDESCREEN=1 environment variable.

How it works (runtime/tmb_widescreen.cpp):

  • When it applies: in a match where every view is the screen's full width (one player, or two players one above the other).
  • What changes: at each match frame's end, each view's width goes from 640 to 853 around the same centre. The game's own viewTweakSetFov (0x1FDEA0) then rebuilds the frustum planes and projection from that width; it runs on a copy of the context.
  • Result: the game culls, projects and clips a scene 4/3 as wide with the same focal length. It shows more at the sides and nothing is stretched.
  • 3D and HUD: the 3D screen and the 2D overlay follow the views' width, so the HUD keeps its shape.
  • Window shape: the window shows 16:9 (BozoEngine #154's setPictureAspect) while a view is wide.
  • Where it stays 4:3:
    • The menus, the pause dialog and each new level make their views again at 640 (viewCreate).
    • Three- and four-player split screens.
  • Loading bar and movies: drawn centred.

QUIT GAME is a new last line on PC SETTINGS' first page:

  • Cross shows "PRESS X AGAIN".
  • A second Cross ends the game and the window closes.
  • Back, or moving the cursor, disarms it.

Engine: BozoEngine moves to master e2dff55: #154 (widescreen setting, offerWidescreen, setPictureAspect) plus another port's #153 (libmpeg demux in runs).

Checked:

  • All 11 native suites pass.
  • The 1P (9,500 frames) and 4P (8,500 frames) replays match main 89d5306 on every recorded field, the RAM image and the sound. This holds both with and without #153.
  • The pinned boot and match1p checks match.
  • Hidden window runs with widescreen on:
    • 1P matches at 16:9: cars, rain and target markers reach the edges, and the radar stays round.
    • Menus stay at 4:3, and a 4P split stays at 4:3.
    • The pause screen looks as it does without widescreen.
    • QUIT GAME ends the game at the second Cross.

🤖 Generated with Claude Code

Widescreen (runtime/tmb_widescreen.cpp; off by default: Video's
Widescreen in F2 or PC SETTINGS, video.ini `widescreen`, PS2X_WIDESCREEN):
at each match frame's end, when every view is the screen's full width (one
player, or two one above the other), each view's width goes from 640 to
853 about the same centre and the game's own viewTweakSetFov (0x1FDEA0)
rebuilds its frustum planes and projection from it, on a copy of the
context. The game then culls, projects and clips a scene 4/3 as wide with
the same focal length: more at the sides, nothing stretched. The 3D screen
(tmb_native.cpp) and the 2D overlay follow the views' width, so the HUD
keeps its shape; the window shows 16:9 (BozoEngine's setPictureAspect)
while a view is wide. The menus, the pause dialog and the next level make
their views again at 640 (viewCreate), so they stay 4:3; three- and
four-player splits stay 4:3; the loading bar and movie pictures are drawn
centred.

QUIT GAME at the bottom of PC SETTINGS' first page: Cross shows "PRESS X
AGAIN", a second Cross ends the game (the host's stop; the window closes),
Back or a move disarms it.

BozoEngine at master e2dff55 (#154: video::Settings::widescreen,
offerWidescreen, setPictureAspect; #153 libmpeg's demux in runs).

Checked: the 11 native suites pass; the 1P (9,500) and 4P (8,500) replays
match main 89d5306 on every recorded field, RAM image and sound; the
pinned boot and match1p checks match. Hidden window runs with widescreen
on: 1P matches at 16:9 (cars, rain and target markers to the edges, the
radar round), the menus 4:3, a 4P split 4:3, the pause screen as without
it; QUIT GAME ended the game at the second Cross.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boubou666
boubou666 merged commit 56e2f2e into main Nov 26, 2026
8 checks passed
@boubou666
boubou666 deleted the claude/quit-and-widescreen branch November 26, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant