DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

SetGraphics(D3nfb)


SetGraphics -- routine to set display in graphics mode

Synopsis

void xxxSetGraphics(pScreen)
	ScreenPtr pScreen;
{
	/* device-specific coding */
}

Description

SetGraphics( ) sets the card into graphics mode.

Arguments


pScreen
pointer to the X screen structure

Exit codes

None

Usage

This routine is optional.

For SVR5 and SCO OpenServer 5 systems, SetGraphics typically calls the grafExec(D3nfb) function to access the device-specific coding in the grafinfo(DSP/4dsp) file. For example:

   void xxxSetGraphics(pScreen)
   	ScreenPtr pScreen;
   {
       grafData *grafinfo = DDX_GRAFINFO(pScreen);
   

grafExec(grafinfo, "SetGraphics", NULL); }

For these platforms, you should code as much of the graphics initialization as possible in the grafinfo file, not in xxxScreen.c or xxxInit.c. This aids in driver portability.

For AIX 5L NFB drivers, the device-specific code must be coded in the driver itself.

Version applicability

This function is supported for NFB drivers on all releases of SCO OpenServer 5, SVR5, and AIX 5L.

Source files


Driver source file
xxxScreen.c

Defined in
SetGraphics member of the scoScreenInfo(D4nfb)

References

grafinfo(DSP/4dsp), scoScreenInfo(D4nfb), SetText(D3nfb),

``Initializing the hardware'' in Developing NFB graphics adapter drivers


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005