ScreenInit(D3nfb)
ScreenInit: nfbScreenInit, cfbScreenInit, mfbScreenInit --
initialize screen
Synopsis
#include "nfbProcs.h"
Bool nfbScreenInit (
	ScreenPtr pScreen,
	int xsize,
	int ysize,
	int mmx,
	int mmy);
#include "cfb.h"
Bool cfbScreenInit (
	ScreenPtr pScreen,
	int xsize,
	int ysize,
	int dpix,
	int dpiy
	int width);
#include "mfb.h"
Bool mfbScreenInit (
	ScreenPtr pScreen,
	pointer pbits
	int xsize,
	int ysize,
	int dpix,
	int dpiy
	int width);
Description
nfbScreenInit( )
should be called by a screen's
xxxInit( )
function to initialize the NFB screen structure.
Arguments
The arguments are:
pbits- 
pointer to screen bitmap
 
pscreen- 
pointer to the X screen structure
 
xsize and ysize - 
screen width and height, in pixels
 
mmx and mmy - 
screen width and height, in millimeters
 
dpix and dpiy - 
dots per inch
 
width- 
width of frame buffer, in pixels
 
Usage
nfbScreenInit( )
can be used if a simple configuration
without a screen prototype is desired;
it does not support layers, multiple hardware visuals,
multiple hardware colormaps, and cached cursors.
Drivers that call
nfbScreenInit( )
must call
nfbAddVisual(D3nfb)
to populate the X screen and
VisualRec(D4nfb)
structures.
mfbScreenInit( )
and
cfbScreenInit( )
use screen prototypes
and should be used for adapters that support
layers, multiple hardware visuals, multiple hardware colormaps,
or cached cursors.
Version applicability
This function is supported for NFB drivers
on all releases of SCO OpenServer 5, SVR5, and AIX 5L.
Source files
Routine source- 
./hw/sco/ports/nfb/nfbScrInit.c
./mfb/mfbscrinit.c
./cfb/cfbscrinit.c
 
Driver source file- 
xxx???.c
 
References
nfbAddVisual(D3nfb)
VisualRec(D4nfb)
19 June 2005
© 2005 The SCO Group, Inc.  All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005