Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RVL: Add an overscan option for screen width #49

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tyleryoung88
Copy link
Contributor

Description of Changes


Adds a new settings option to adjust the picture width in order to accommodate tv or monitor used

Visual Sample


image

Checklist


  • I have thoroughly tested my changes to the best of my ability
  • I confirm I have not contributed anything that would impact Nazi Zombies: Portable's licensing and usage
  • This Pull Request fixes a critical issue that should be reviewed and merged as soon as possible

// ELUTODO: really necessary?
//GX_InvVtxCache();
//GX_InvalidateTexAll();
GX_SetScissor(*x,*y,*width > 640 ? 640 - (vid_overscan_width.value * 360) : *width - (vid_overscan_width.value * 360),*height);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what we're doing here? Is this adding a border/shrinking our render resolution?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It adjusts the view scissor based on vid_overscan_width value. When this value is increased, the start value (normally 0) of the width of the scissor gets shifted over, and the right side pixels get culled. This will never cull more than 36 pixels from the right side. I will upload a fix later to adjust the 2d resolution, which will offset the HUD accordingly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sounds like this is incomplete then. Please mark this as a draft

@tyleryoung88 tyleryoung88 marked this pull request as draft February 13, 2025 15:34
@Fancy2209
Copy link
Contributor

With this we should probably set viWidth to 720

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.

3 participants