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

GS: Fix crop scaling for software and bilinear (sharp) #10816

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

refractionpcsx2
Copy link
Member

Description of Changes

Fixes crop scaling when in software mode, but also if your internal resolution was lower than the window size and you used Bilinear (Sharp) filtering

Rationale behind Changes

Software mode: It was using HW upscale values, regardless of the current renderer, it now forces x1 for calculating software mode src size.

Bilinear (Sharp): When this option is active, the "current" framebuffer size gets increased to be larger than the window. Unfortunately the crop amount is done on this framebuffer, so it was resulting in bad amounts of cropping. It now adjusts the crop amount based on the real framebuffer size vs the "current" framebuffer size.

Suggested Testing Steps

Test crop values in software and hardware at different resolutions, including Bilinear (Sharp) mode, try different window sizes, make sure the cropping doesn't completely take a dump

@github-actions github-actions bot added the GS label Feb 14, 2024
Copy link
Contributor

@Berylskid Berylskid left a comment

Choose a reason for hiding this comment

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

Tested PR build, and confirmed it fixes #10814

@refractionpcsx2 refractionpcsx2 merged commit 45421a9 into master Feb 15, 2024
22 checks passed
@refractionpcsx2 refractionpcsx2 deleted the gs_cropscale branch February 15, 2024 13:42
@refractionpcsx2
Copy link
Member Author

Thanks for testing folks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants