Previous: SetScreenStart procedure To the Table of Content Next: SetTextJustify procedure

- 4.37.2.111 -
Standard Units
Graph Unit
Graph Unit Procedures and Functions

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: SetScreenStart procedure To the Table of Content Next: SetTextJustify procedure
SetScreenStart procedure Table of Content SetTextJustify procedure

- 4.37.2.111 -