Added logic to save/load video force aspect ratio property to/from config settings.
This commit is contained in:
parent
9013fad6a9
commit
f214da8314
|
@ -740,6 +740,7 @@ void ConsoleVideoConfDialog_t::aspectEnableChanged( int value )
|
|||
aspectSelectLabel->hide();
|
||||
aspectSelect->hide();
|
||||
}
|
||||
g_config->setOption ("SDL.ForceAspect", forceAspect);
|
||||
|
||||
}
|
||||
//----------------------------------------------------
|
||||
|
|
|
@ -103,6 +103,8 @@ ConsoleViewGL_t::ConsoleViewGL_t(QWidget *parent)
|
|||
|
||||
g_config->getOption("SDL.XScale", &xscale);
|
||||
g_config->getOption("SDL.YScale", &yscale);
|
||||
|
||||
g_config->getOption ("SDL.ForceAspect", &forceAspect);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,6 +95,8 @@ ConsoleViewSDL_t::ConsoleViewSDL_t(QWidget *parent)
|
|||
|
||||
g_config->getOption("SDL.XScale", &xscale);
|
||||
g_config->getOption("SDL.YScale", &yscale);
|
||||
|
||||
g_config->getOption ("SDL.ForceAspect", &forceAspect);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue