BASE: Add command line stretch mode arg
This commit is contained in:
parent
812ce59ee4
commit
adacb4fcfd
3 changed files with 8 additions and 0 deletions
1
README
1
README
|
@ -1527,6 +1527,7 @@ arguments -- see the next section.
|
|||
-f, --fullscreen Force full-screen mode
|
||||
-F, --no-fullscreen Force windowed mode
|
||||
-g, --gfx-mode=MODE Select graphics scaler (see also section 5.3)
|
||||
--stretch-mode=MODE Select stretch mode (center, integral, fit, stretch)
|
||||
--filtering Force filtered graphics mode
|
||||
--no-filtering Force unfiltered graphics mode
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ static const char HELP_STRING[] =
|
|||
" -g, --gfx-mode=MODE Select graphics scaler (1x,2x,3x,2xsai,super2xsai,\n"
|
||||
" supereagle,advmame2x,advmame3x,hq2x,hq3x,tv2x,\n"
|
||||
" dotmatrix)\n"
|
||||
" --stretch-mode=MODE Select stretch mode (center, integral, fit, stretch)"
|
||||
" --filtering Force filtered graphics mode\n"
|
||||
" --no-filtering Force unfiltered graphics mode\n"
|
||||
" --gui-theme=THEME Select GUI theme\n"
|
||||
|
@ -213,6 +214,7 @@ void registerDefaults() {
|
|||
ConfMan.registerDefault("gfx_mode", "normal");
|
||||
ConfMan.registerDefault("render_mode", "default");
|
||||
ConfMan.registerDefault("desired_screen_aspect_ratio", "auto");
|
||||
ConfMan.registerDefault("stretch_mode", "default");
|
||||
|
||||
// Sound & Music
|
||||
ConfMan.registerDefault("music_volume", 192);
|
||||
|
@ -509,6 +511,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
|
|||
DO_OPTION('g', "gfx-mode")
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION("stretch-mode")
|
||||
END_OPTION
|
||||
|
||||
DO_OPTION_INT('m', "music-volume")
|
||||
END_OPTION
|
||||
|
||||
|
|
|
@ -296,6 +296,8 @@ static void setupGraphics(OSystem &system) {
|
|||
system.setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen"));
|
||||
if (ConfMan.hasKey("filtering"))
|
||||
system.setFeatureState(OSystem::kFeatureFilteringMode, ConfMan.getBool("filtering"));
|
||||
if (ConfMan.hasKey("stretch_mode"))
|
||||
system.setStretchMode(ConfMan.get("stretch_mode").c_str());
|
||||
system.endGFXTransaction();
|
||||
|
||||
// When starting up launcher for the first time, the user might have specified
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue