Enforce aspect ratio in fullscreen SDL
|Reported by:||tramboi||Owned by:|
This patch adds a new "desired_aspect_ratio" option, which can be set to "auto"(default), "4/3", "16/9" and "16/10". When not "auto", a switch to fullscreen in the SDL backend chooses the tightest resolution available that respects the ratio, if possible. The rendering takes place in the upper left corner, without stretching (but the software scaling is taken into account). A next version will render the surface centered, but it was "riskier", so I chose to submit this intermediate version!
Ticket imported from: #2784961. Ticket imported from: patches/1118.
Change History (16)
by , 11 years ago