Fixed clip sides image distortion issue for SDL video driver by forcing re-build of video textures when applying the change.

This commit is contained in:
mjbudd77 2021-05-23 06:30:05 -04:00
parent 20a691e608
commit af1fe48655
1 changed files with 10 additions and 6 deletions

View File

@ -910,15 +910,19 @@ void ConsoleVideoConfDialog_t::applyChanges( void )
if ( consoleWindow->viewport_GL )
{
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->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 );