- added vid_cropaspect. This cvar turns vid_aspect into a letterboxing function that will crop the unused sides of the screen away, instead of stretching it. Requires one of the non-legacy OpenGL framebuffers to work.

This commit is contained in:
Rachael Alexanderson 2017-10-07 20:18:37 -04:00
commit 69abf095c9
7 changed files with 26 additions and 9 deletions

View file

@ -1304,8 +1304,8 @@ void OpenGLSWFrameBuffer::Flip()
if (!IsFullscreen())
{
int clientWidth = ViewportScaledWidth(GetClientWidth());
int clientHeight = ViewportScaledHeight(GetClientHeight());
int clientWidth = ViewportScaledWidth(GetClientWidth(), GetClientHeight());
int clientHeight = ViewportScaledHeight(GetClientWidth(), GetClientHeight());
if (clientWidth > 0 && clientHeight > 0 && (Width != clientWidth || Height != clientHeight))
{
Resize(clientWidth, clientHeight);