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

[Libretro] Fix VMU scaling for dynamic res games #1347

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

bslenul
Copy link
Contributor

@bslenul bslenul commented Dec 17, 2023

Noticed while testing #1339, the on-screen VMU can get squished if the game decides to change its resolution.

Before:
image

After:
image

@bslenul
Copy link
Contributor Author

bslenul commented Dec 17, 2023

Erm, VMU is getting stretched now when widescreen hack is enabled... 🤔

edit: Added

if (config::Widescreen)
{
	vmu_padding_x = vmu_padding_x / 4.f * 3.f;
	vmu_width = vmu_width / 4.f * 3.f;
}

for VK and D3D11, somehow GL handles this perfectly fine already.

@flyinghead flyinghead merged commit 57c2dcd into flyinghead:dev Dec 21, 2023
13 checks passed
@bslenul bslenul deleted the vmu-scaling branch December 21, 2023 13:38
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