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


  

SetMode (csCode =2)

The required SetMode routine sets the pixel depth of the screen.

OSErr = Control(theDeviceRefNum, cscSetMode, &theVDPageInfo );

-->     csModeDesired   relative bit depth
--      csData          Unused
-->     csPage          Desired display page
<--     csBaseAddr      Base address of video RAM for this csMode

To improve the screen appearance during mode changes, devices with settable color tables should set all entries of the Color Lookup table (CLUT) to 50 percent gray before changing the mode. If the video card supports 16-bit or 32-bit pixel depths, the SetMode routine should set an internal flag to indicate direct mode operations.


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