The current video mode;
startup resolution of the video device in either window or fullscreen mode.
A7.62 Depending on the video_aspect value, the following normal or widescreen resolutions are selected:
||320x200 (window only)
||320x240 (window only)
||320x400 (window only)
||400x300 (window only)
||512x384 (window only)
720x480, 848x480 (default)
- After opening the video device, this variable can only be changed through
By default, pressing the [F5] key
toggles the video resolution.
- Depending on the video card, some of the resolutions are not available in fullscreen mode. Fullscreen video modes below 6 are legacy modes and not supported by most video cards. Fullscreen modes 6..10
in 4:3 video aspect
are working almost everywhere.
- For setting an arbitrary resolution in window mode, use video_set.
For opening the engine window in an arbitrary resolution, set screen_size before the first frame.
Note that a window (including title bar and border!) can not be bigger than the desktop resolution.
In C-Script this variable can not be set, but must be redefined. LC In lite-C this variable can be set
in the first frame before any level_load() or
In A6 resolutions above 8 were
only supported by the Commercial Edition. This restriction does not apply
to A7 .
If video_aspect is not set, the engine automatically selects one of the possible widescreen or 4:3 resolutions, depending on the desktop resolution and A7.84 the available fullscreen modes. Switching to widescreen resolutions can be prevented by setting the video_aspect variable to 1.333 or below.
video_mode = 6; // start in 640x480, 640x400, or 640x352 resolution
video_screen = 1; // start in fullscreen