Opened 20 years ago

Closed 20 years ago

Last modified 6 years ago

#1998 closed defect (fixed)

ALL: Command-line inconsistency

Reported by: eriktorbjorn Owned by: fingolfin
Priority: normal Component: --Other--
Version: Keywords:
Cc: Game:

Description

I've tested this with a recent CVS snapshot:

In my .scummvmrc, the [scummvm] section contains "aspect_ratio=true" and "gfx_mode=advmame2x". However, there are cases when I want to override this. The command-line is behaving a bit inconsistently though:

$ scummvm -g3x --no-aspect-ratio ScummVM starts in 3x mode and no aspect ratio correction.

$ scummvm --no-aspect-ratio -g3x ScummVM starts in 3x mode, but with aspect ratio correction.

So apparently the order of the command-line arguments matter here. I think the difference happens because the parsing of the graphics mode uses g_system, which causes the backend to be initialized. In the second case this happens while aspect ratio correction is still on (command-line options are parsed from right to left, for whatever reason).

Ticket imported from: #1184664. Ticket imported from: bugs/1998.

Change History (3)

comment:1 by fingolfin, 20 years ago

Owner: set to fingolfin
Resolution: fixed
Status: newclosed

comment:2 by fingolfin, 20 years ago

Fixed in CVS.

comment:3 by digitall, 6 years ago

Component: --Unset----Other--
Note: See TracTickets for help on using tickets.