From af1fe4865598e80ee48f0f293f0e613764532b65 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Sun, 23 May 2021 06:30:05 -0400 Subject: [PATCH] Fixed clip sides image distortion issue for SDL video driver by forcing re-build of video textures when applying the change. --- src/drivers/Qt/ConsoleVideoConf.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/drivers/Qt/ConsoleVideoConf.cpp b/src/drivers/Qt/ConsoleVideoConf.cpp index 76bce9ca..aeaf5961 100644 --- a/src/drivers/Qt/ConsoleVideoConf.cpp +++ b/src/drivers/Qt/ConsoleVideoConf.cpp @@ -910,15 +910,19 @@ void ConsoleVideoConfDialog_t::applyChanges( void ) if ( consoleWindow->viewport_GL ) { - consoleWindow->viewport_GL->setForceAspectOpt( aspectCbx->isChecked() ); - consoleWindow->viewport_GL->setAutoScaleOpt( autoScaleCbx->isChecked() ); - consoleWindow->viewport_GL->setScaleXY( xscale, yscale ); + consoleWindow->viewport_GL->setLinearFilterEnable( gl_LF_chkBox->isChecked() ); + consoleWindow->viewport_GL->setForceAspectOpt( aspectCbx->isChecked() ); + consoleWindow->viewport_GL->setAutoScaleOpt( autoScaleCbx->isChecked() ); + consoleWindow->viewport_GL->setScaleXY( xscale, yscale ); + consoleWindow->viewport_GL->reset(); } if ( consoleWindow->viewport_SDL ) { - consoleWindow->viewport_SDL->setForceAspectOpt( aspectCbx->isChecked() ); - consoleWindow->viewport_SDL->setAutoScaleOpt( autoScaleCbx->isChecked() ); - consoleWindow->viewport_SDL->setScaleXY( xscale, yscale ); + consoleWindow->viewport_SDL->setLinearFilterEnable( gl_LF_chkBox->isChecked() ); + consoleWindow->viewport_SDL->setForceAspectOpt( aspectCbx->isChecked() ); + consoleWindow->viewport_SDL->setAutoScaleOpt( autoScaleCbx->isChecked() ); + consoleWindow->viewport_SDL->setScaleXY( xscale, yscale ); + consoleWindow->viewport_SDL->reset(); } consoleWindow->resize( s );