Skip to content

Conversation

@warmenhoven
Copy link
Collaborator

@warmenhoven warmenhoven commented Dec 2, 2025

video_driver_update_viewport() is supposed to be able to handle all of the video scaling and aspect ratio settings but right now is only being used by metal and the d3d video drivers. All the other drivers do basically exactly the same thing but inline. This cleans it up a little.

Originally this included almost all of the graphics drivers. I've since reduced it to just the ones I've tested directly, so this should be safe. I'll create another PR after this one is merged with the ones I haven't tested yet. For now they can continue without having problems.

I have another smaller more targeted PR coming, to allow overlays to change the position/aspect ratio of the viewport, that uses video_driver_update_viewport(), so to make it work broadly, it's helpful to have the video drivers actually use it. The ones that haven't been updated just won't be able to have that until they move to video_driver_update_viewport().

@warmenhoven warmenhoven force-pushed the warmenhoven/pr/viewport branch from 7794fba to 9a51686 Compare December 3, 2025 18:39
@LibretroAdmin LibretroAdmin merged commit 3e65b58 into libretro:master Dec 12, 2025
31 checks passed
@warmenhoven warmenhoven deleted the warmenhoven/pr/viewport branch December 12, 2025 14:37
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