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

(video_driver) fix windowed viewport with libretro rotation #15247

Merged
merged 2 commits into from May 2, 2023

Conversation

barbudreadmon
Copy link
Contributor

I noticed the viewport seems wrong when running rotated games in windowed mode: a rotated 320x240 game with a 3x scaling will output [INFO] [Video]: Set video size to: 540x720. instead of [INFO] [Video]: Set video size to: 720x960., the original resolution will even be downsized if you run it at 1x scaling.

This PR should fix this, i don't think it affects anything besides rotated games running in windowed mode, however i'm not familiar with that code so correct me if i'm wrong.

@barbudreadmon barbudreadmon changed the title (video_driver) fix viewport with libretro rotation (video_driver) fix windowed viewport with libretro rotation May 2, 2023
@barbudreadmon
Copy link
Contributor Author

Don't merge yet, it doesn't seem correct with a 304x224 game

@barbudreadmon barbudreadmon marked this pull request as draft May 2, 2023 10:19
@barbudreadmon barbudreadmon marked this pull request as ready for review May 2, 2023 10:49
@barbudreadmon
Copy link
Contributor Author

barbudreadmon commented May 2, 2023

Tested on rotated games with resolutions that aren't a multiple of their ratio (304x224 and 256x224), it seems correct now

@LibretroAdmin LibretroAdmin merged commit 3036c47 into libretro:master May 2, 2023
17 checks passed
@barbudreadmon barbudreadmon deleted the patch-1 branch May 2, 2023 15:16
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.

None yet

2 participants