video_set(var width,var height,var depth,var screen)

Like video_switch, but the width and height can now be set individually, thus allowing arbitrary video resolutions not contained in the 12 supported modes.

Parameters:

width screen/window width, or 0 for no change
height screen/window height, or 0 for no change
depth always 0
screen fullscreen (1) or window mode (2), or 0 for no change

Returns:

0 if the command failed, otherwise nonzero.

Remarks:

Modifies:

video_mode new resolution
video_screen fullscreen or window mode
screen_size height and width in pixel

Speed:

Medium

Example:

// place the window at position (500,300) and remove the border
video_window(vector(500,300,0),nullvector,1,NULL); // But a small engine window at this position (to fake the eninge into another applictaion)
video_set(100, 100, 32, 0);

See also:

video_switch, video_window

► latest version online