From 5dff3d5af02e0e77acd9f97a80f50a2757f535a9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 28 Dec 2016 16:11:24 +0200 Subject: [PATCH] Do not apply viewport scaling in fullscreen mode See https://forum.drdteam.org/viewtopic.php?t=7339 --- src/gl/renderer/gl_renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_renderer.cpp b/src/gl/renderer/gl_renderer.cpp index 0a21f1e01..57d17dfb4 100644 --- a/src/gl/renderer/gl_renderer.cpp +++ b/src/gl/renderer/gl_renderer.cpp @@ -286,7 +286,7 @@ void FGLRenderer::SetOutputViewport(GL_IRECT *bounds) mSceneViewport.height = height; // Scale viewports to fit letterbox - if (gl_scale_viewport || !FGLRenderBuffers::IsEnabled()) + if ((gl_scale_viewport && !framebuffer->IsFullscreen()) || !FGLRenderBuffers::IsEnabled()) { mScreenViewport.width = mOutputLetterbox.width; mScreenViewport.height = mOutputLetterbox.height;