Next: Sound options, Previous: Path options, Up: Reference

### 4.5 Graphics options

#### 4.5.1 fullscreen

— Command-line option: `--fullscreen=<value>`
— Environment variable: `LW6_FULLSCREEN`
— XML key: `fullscreen`

> Type: boolean.

> Force the game to fun fullscreen. Note that the graphics backend might ignore this hint.

#### 4.5.2 gfx-backend

— Command-line option: `--gfx-backend=<value>`
— Environment variable: `LW6_GFX_BACKEND`
— XML key: `gfx-backend`

> Type: string.

> Sets the graphics backend AKA 'gfx' to use. For now the only choice is 'gl' and will use an OpenGL/SDL 3D-accelerated driver.

#### 4.5.3 height

— Command-line option: `--height=<value>`
— Environment variable: `LW6_HEIGHT`
— XML key: `height`

> Type: integer.

> Run the game with the given screen height.Note that the graphics backend might ignore this hint.Use with its companion option 'width'.

#### 4.5.4 preset-resolution

— Command-line option: `--preset-resolution=<value>`
— Environment variable: `LW6_PRESET_RESOLUTION`
— XML key: `preset-resolution`

> Type: integer.

> The last preset resolution used. 0 is low, 1 is medium, 2 is high. Real resolutions depend on your hardware, OS and drivers.

#### 4.5.5 width

— Command-line option: `--width=<value>`
— Environment variable: `LW6_WIDTH`
— XML key: `width`

> Type: integer.

> Run the game with the given screen width. Note that the graphics backend might ignore this hint.Use with its companion option 'height'.

#### 4.5.6 windowed-mode-limit

— Command-line option: `--windowed-mode-limit=<value>`
— Environment variable: `LW6_WINDOWED_MODE_LIMIT`
— XML key: `windowed-mode-limit`

> Type: float.

> When switching back from fullscreen mode to windowed mode, if we're in maximum resolution, then this coefficient will be applied before resizing the window. The idea is that (obviously) a windowed mode is prefered when a little smaller that totally fullscreen. So set this to a value just below 1.0.