|
|
void xxxSetGraphics(pScreen)
ScreenPtr pScreen;
{
/* device-specific coding */
}
pScreenFor 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.
``Initializing the hardware'' in Developing NFB graphics adapter drivers