Skip to content

Experimental widescreen support#4

Closed
NoahVl wants to merge 1 commit into
gcsmith:mainfrom
NoahVl:widescreen-support
Closed

Experimental widescreen support#4
NoahVl wants to merge 1 commit into
gcsmith:mainfrom
NoahVl:widescreen-support

Conversation

@NoahVl
Copy link
Copy Markdown

@NoahVl NoahVl commented May 25, 2026

image

The gray-ish background during mission select doesn't cover the full widescreen, but I'm sure this is fixable too. Hope this helps!

@gcsmith
Copy link
Copy Markdown
Owner

gcsmith commented May 26, 2026

Hey, appreciate your interest in the project. Widescreen for FRUSTRATIO_1 broke with one of the RT64/plume updates. Probably when I switched over to the RecompFrontend and updated the submodules.

This issue is already fixed in my local changes which I'll hopefully push sometime later this week. These changes are more extensive and fix various other issues related to widescreen (menu borders and effects, object-frustum culling, HUD alignment, etc), as well as properly tying the enhanced features into the game config and menus.

I don't think the analysis about the 5px offset is quite right, by the way. The game borders are 10 pixels on the left and right, 8 on top, and 18 on bottom. The bordered / subscreen coordinates get passed to the scissor function as-is, but are pushed outward by 5px in each direction when setting the viewport parameters. I think this may have been to hide some warping due to imprecision in the original F3D ucode's clipper, but I'm not 100% confident about the original intent.

The upcoming patch passes the full / borderless rect coordinates down from the call site in the camera code, but there is actually an existing off-by-one bug in uvGfxClipRect that causes the RT64 heuristics to fail, requiring an additional fix. The 5px offset is irrelevant in that case because the original game code clamps the coordinates to the fullscreen dimensions. With this approach, the internal state correctly reflects the patched coords everywhere vs. just fixing them up right before making the graphics API calls.

@gcsmith
Copy link
Copy Markdown
Owner

gcsmith commented May 26, 2026

Closing PR as already-fixed.

@gcsmith gcsmith closed this May 26, 2026
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.

2 participants