|
|
The SetGraphics(D3nfb) and SetText(D3nfb) routines in the xxxScreen.c file are called to put the graphics adapter into graphics and text modes. For SVR5 and SCO OpenServer 5 systems, this is typically done by calling the corresponding function from the grafinfo(DSP/4dsp) file. For AIX 5L systems, you should code subroutines in your driver that define this functionality.
If possible, use your adapter's video BIOS to set the desired mode and monitor frequency. It is important to keep this code as general as possible. On SVR5 and SCO OpenServer 5, any initialization code that is specific to an adapter and that cannot be used by all adapters using this driver does not belong in the C source; Adapter specific code belongs in a grafinfo(DSP/4dsp) file. For AIX 5L, you must code this in the driver itself, but isolating it into its own subroutine greatly simplifies the maintenance effort.