From ba434bab0409f314176e5b3956333c1a1ec6c06f Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Wed, 17 Aug 2016 16:34:23 +0700 Subject: [PATCH] Fix OGLVideo::_setBufferSize(): make widescreen hack working when fb emulation disabled. --- src/OpenGL.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OpenGL.cpp b/src/OpenGL.cpp index f6012727..f7593fc8 100644 --- a/src/OpenGL.cpp +++ b/src/OpenGL.cpp @@ -269,6 +269,11 @@ void OGLVideo::_setBufferSize() } else { m_width = m_screenWidth; m_height = m_screenHeight; + if (config.frameBufferEmulation.aspect == Config::aAdjust && (m_screenWidth * 3 / 4 > m_screenHeight)) { + f32 width43 = m_screenHeight * 4.0f / 3.0f; + m_adjustScale = width43 / m_screenWidth; + m_bAdjustScreen = true; + } } }