set_driver


Description:

public bool set_driver (string driver_spec) throws Error

The driver spec is of the format "\[<name>\[::<flag>\]\] \[gw <width>\] \[gh <height>\] \[gc <colors>\] \[ dp <dpi>\]".

  • "<name>" is the name of a video driver plugin.
  • "<flag>" is "fs" for fullscreen or "ww" for windowed (not supported by all drivers)
  • "<width>" is the default width
  • "<height>" is the default height
  • "<colors>" is the default color depth. "K" and "M" suffixes are recognized.
  • "<dpi>" the display resolution in dots per inch.

If driver_spec is null, then it will first check the GRX_DRIVER environment variable for a driver spec. If the environment variable is not present, then it will uses the driver with the highest number of modes.

Parameters:

driver_spec

The driver spec.

Returns:

true on success, otherwise false.


Namespace: Grx
Package: grx-3.0