Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
BACKENDS: add Fit to window (4:3) stretch mode to SDL2 backend #1806
This simple PR adds a fourth stretch mode to the SDL2 backend, called "Fit to window (4:3)". It fits the screen to the window similar to the existing "Fit to window" stretch mode, but enforces a 4:3 aspect ratio.
Using this stretch mode and unticking the "aspect ratio correction" does hardware aspect ratio correction on all SDL2 platforms, making use of the SDL2 scaler. This is similar to what has always been done on Vita.
This method is faster and often better looking than the software aspect ratio correction that can be enabled with the checkbox.
One downside compared to checking the "aspect ratio correction" tick mark is that the menu and user interface will also be hardware-scaled just like the game screen. This means the menu font, mouse pointer and buttons will look slightly stretched. But that is just the same as with all other stretch modes.