Repository navigation
Widescreen in 1P/2P matches, and QUIT GAME in PC SETTINGS - #112
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widescreen (16:9), off by default. It can be switched on in four places:
widescreen = oninvideo.ini.PS2X_WIDESCREEN=1environment variable.How it works (
runtime/tmb_widescreen.cpp):viewTweakSetFov(0x1FDEA0) then rebuilds the frustum planes and projection from that width; it runs on a copy of the context.setPictureAspect) while a view is wide.viewCreate).QUIT GAME is a new last line on PC SETTINGS' first page:
Engine: BozoEngine moves to master e2dff55: #154 (widescreen setting,
offerWidescreen,setPictureAspect) plus another port's #153 (libmpeg demux in runs).Checked:
🤖 Generated with Claude Code