1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix OGLVideo::_setBufferSize():

make widescreen hack working when fb emulation disabled.
This commit is contained in:
Sergey Lipskiy 2016-08-17 16:34:23 +07:00
parent 03c87712cd
commit ba434bab04

View File

@ -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;
}
}
}