## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### SET_RESOLUTION

The :SET_RESOLUTION command is used to inform the 32-bit graphics engine of the initial display resolution for the display driver that is being installed. This command is only necessary for display drivers that can support multiple display resolutions and use the DspDefaultResolution API to determine (during their initialization) which resolution to display. That API was described earlier in this chapter.

The parameters associated with this command are listed in the lines that follow the :SET_RESOLUTION command line. Each parameter is specified as a < keyword> = <value> pair.

The following list includes the parameters that must be specified after the :SET_RESOLUTION command line. All the parameter values in this list are numeric values and are specified as unsigned decimal numbers.

WIDTH = <Width of the display resolution in pels>
HEIGHT = <Height of the display resolution in pels>
COLORS = <Number of colors supported in this display resolution>
PLANES = <Number of planes in this display resolution>

Example:

        :SET_RESOLUTION
        WIDTH=1024
        HEIGHT=768
        COLORS=256
        PLANES=1