video_aspect

A7.66 The width to height ratio of the primary monitor; can be modified by the user to determine the startup resolution of the video device in either window or fullscreen mode, and the behavior of the video_switch function.

Range:

1.333 for 4:3, 1.6 for 16:10 widescreen, or 1.777 for 16:9 widescreen.

Type:

var

Remarks:

If the selected fullscreen video aspect is not supported by the video card, the next-nearest video aspect is used. 4:3 is supported by most video cards.

Example (lite-C):

function main() 
{ 
  video_aspect = 1.333; // enforce 4:3 mode
  video_mode = 7;   // start in 800x600 resolution if available
  wait(1)
  ...
} 

See also:

video_switch, video_mode, video_screen, screen_size

► latest version online