Project

General

Profile

Up

_ENUMdisplaySettings

Return the list of available screen resolutions.

Prototype :

fun [] [[I I I] r1]

Return : [[I I I] r1] for each element, three values : the horizontal and the vertical resolution and the color depth.

See also :

_screendepth

_GETscreenSize

_GETdesktopSize

Example :

fun main ()=
	_showconsole;
	let _ENUMdisplaySettings -> l in
	while l != nil do
		let hd l -> [a b c] in
		(
		_fooS sprintf "%i  %i  %i" [a b c];
		set l = tl l;
		);
	0;;

The console could display this :

640  480  16
800  600  16
832  624  16
1024  768  16
1280  1024  16
640  480  8
800  600  8
832  624  8
1024  768  8
1280  1024  8
640  480  32
800  600  32
832  624  32
1024  768  32
1280  1024  32

Note

This functions only works on MS Windows. On other platforms, nil is returned.