SDL: Use the desktop resolution when drawing games to a framebuffer

Fixes #1513.
This commit is contained in:
Bastien Bouclet 2018-12-20 06:20:51 +01:00
parent fee73851f0
commit 31a29e666e

View File

@ -159,7 +159,7 @@ void OpenGLSdlGraphicsManager::createOrUpdateScreen() {
// Choose the effective window size or fullscreen mode
uint effectiveWidth;
uint effectiveHeight;
if (_fullscreen && !renderToFrameBuffer) {
if (_fullscreen && (engineSupportsArbitraryResolutions || renderToFrameBuffer)) {
Common::Rect fullscreenResolution = getPreferredFullscreenResolution();
effectiveWidth = fullscreenResolution.width();
effectiveHeight = fullscreenResolution.height();