- fixed display for smaller screeblocks value.

When refactoring the screen scaling one line too many was altered by accident.
This commit is contained in:
Christoph Oelckers 2018-07-21 12:13:17 +02:00
parent 57f65a9379
commit 6ca2b3fce1

View file

@ -224,7 +224,7 @@ void FGLRenderer::DrawPresentTexture(const IntRect &box, bool applyGamma)
mPresentShader->Uniforms->Saturation = clamp<float>(vid_saturation, -15.0f, 15.f); mPresentShader->Uniforms->Saturation = clamp<float>(vid_saturation, -15.0f, 15.f);
mPresentShader->Uniforms->GrayFormula = static_cast<int>(gl_satformula); mPresentShader->Uniforms->GrayFormula = static_cast<int>(gl_satformula);
} }
mPresentShader->Uniforms->Scale = screen->SceneScale(); mPresentShader->Uniforms->Scale = { screen->mScreenViewport.width / (float)mBuffers->GetWidth(), screen->mScreenViewport.height / (float)mBuffers->GetHeight() };
mPresentShader->Uniforms.Set(); mPresentShader->Uniforms.Set();
RenderScreenQuad(); RenderScreenQuad();
} }