Previous: 4.37.2.110. SetScreenStart procedure To the Table of Contents Next: 4.37.2.112. SetTextJustify procedure
4.37.2.110. SetScreenStart procedure Table of Contents 4.37.2.112. SetTextJustify procedure

- 4.37.2.111. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.111. SetSVGAMode procedure


4.37.2.111. SetSVGAMode procedure

Targets: MS-DOS, Win32


Graph Unit

Sets SVGA video mode with given resolution and color depth.

Declaration:
procedure SetSVGAMode(XRes, YRes, BPP, VMode: Word);
Remarks:
XRes and YRes parameters define required resolution; BPP define color depth (bits per pixel) and must be in range [8,15,16,24,32]. VMode parameter must be in range [1..3]:
   LFBorBanked = 0 - Set Lfb or Banked modes.
   BankedOnly  = 1 - Set Banked modes only;
   LFBOnly     = 2 - Set Lfb modes only;
Example:
SetSVGAMode(640,480,8,LfbOrBanked) tortured to set 256-colored (8 bits per pixel) SVGA mode with resolution 640x480.
This procedure will try to install Lfb mode, if it supported. If not - Banked mode will be installed.


Previous: 4.37.2.110. SetScreenStart procedure To the Table of Contents Next: 4.37.2.112. SetTextJustify procedure
4.37.2.110. SetScreenStart procedure Table of Contents 4.37.2.112. SetTextJustify procedure

- 4.37.2.111. -