DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

nfbSetOptions(D3nfb)


nfbSetOptions -- notify NFB layer of driver characteristics and NFB version

Synopsis

#include "nfbDefs.h"

void nfbSetOptions ( ScreenPtr pScreen, int version, Mask optmask, Mask optmask2);

Description

nfbSetOptions( ) allows the driver to inform the NFB layer of certain characteristics as well as tell the NFB layer its version number for backwards compatibility. You must call nfbSetOptions( ) as the last statement in the xxxInit( ) routine to tell the X server which version of the link kit was used to create the driver.

Arguments


pScreen
pointer to the current screen

version
X Display Driver's version number; always NFB_VERSION.

optmask
bitmask of options used for passing driver configuration options to the NFB layer. Supported values are:

NFB_ROTATE_STIPPLES
expand all stipples to double word boundaries and attempt to rotate them to the current drawable origin. This is for adapters that can only fill patterns with origins at (0,0).

NFB_ROTATE_TILES
expand all tiles to double word boundaries and attempt to rotate them to the current drawable origin. This is for adapters that can only fill patterns with origins at (0,0).

NFB_POLYGON
display driver has implemented a polygon routine that is fully compliant with the X protocol. Currently, only EvenOdd fill rule polygons are implemented and hardware clipping must be supported. See FillPolygons(D3nfb).

NFB_POLYBRES
tells NFB to gather multiple Bresenham lines before asking the driver to render them. This option was added for backwards compatibility with older drivers that render Bresenham lines one at a time.

optmask2
currently unused. Set to 0.

Exit codes

None

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

Driver source file
xxxInit.c

References

``Bresenham objects'' 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