Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.50

Description

Description:Returns the resolutions available by the installed video card.

Syntax

Syntax:getSupportedResolutions
Parameters:
Return Value:Array - Compatible resolutions.

In 1.x, only [[0,0]] is returned, if VBS is running in windowed mode. In full-screen mode, the resolutions that are compatible with the current aspect ratio are returned.

In 2.x+, a full list of all possible resolutions is returned (independent of windowed or full-screen mode, or the current aspect ratio).

Examples

Examples:
_resolutions = getSupportedResolutions;
// Might return the following if in 3:4 aspect ratio: [[640,480],[720,480],[720,576],[800,600],[1024,768],[1152,864],[1280,720],[1280,768],[1280,800],[1280,960],[1280,1024],[1360,768],[1366,768],[1600,900],[1600,1024],[1600,1200],[640,400]]

Additional Information

See also: aspectRatio, getResolution, getVideoSetting
Multiplayer: 
Problems:In V2.x-V3.5, an additional [0,0] is returned as the last element in the resolution list.

Notes