PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

GetNextResolution (csCode = 17)

The required GetNextResolution routine reports all display resolutions that the driver supports.

OSErr = Status(theDeviceRefNum, cscGetNextResolution, &theVDResolutionInfoRec);
--> csPreviousDisplayModeID
ID of the previous display mode
<-- csDisplayModeID
ID of the display mode following csPreviousDisplayModeID.
<-- csHorizontalPixels
Number of pixels in a horizontal line
<-- csVerticalLines
Number of lines in a screen
<-- csRefreshRate
Vertical refresh rate of the screen
<-- csMaxDepthMode
Max relative bit depth for this DisplayModeID

GetNextResolution passes a csPreviousDisplayModeID value and returns the next supported display mode. The csDisplayModeID field is updated and the csHorizontalPixels, csVerticalLines, and csRefreshRate fields are set. The csMaxDepthMode field is also set with the highest supported video bit depth. This uses the same convention as in the past; kDepthMode1 is the first relative bit depth supported, not necessarily 1 bit per pixel. For futher information about depth modes, see the next section.

Observe these cautions:

The constants just described are defined in the file Video.h and are listed in Data Structures.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)