- Added 0.75x scale mode

This commit is contained in:
Magnus Norddahl 2017-07-24 08:35:27 +02:00
commit e06f87cf10
4 changed files with 27 additions and 22 deletions

View file

@ -153,7 +153,7 @@ EXTERN_CVAR(Float, vid_contrast)
EXTERN_CVAR(Float, vid_saturation)
EXTERN_CVAR(Int, gl_satformula)
extern bool bSuperSampled;
bool ViewportLinearScale();
void FGLRenderer::RenderScreenQuad()
{
@ -856,7 +856,7 @@ void FGLRenderer::DrawPresentTexture(const GL_IRECT &box, bool applyGamma)
glViewport(box.left, box.top, box.width, box.height);
glActiveTexture(GL_TEXTURE0);
if (bSuperSampled)
if (ViewportLinearScale())
{
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);