S3

SUMMARY

Display sample driver implementation is covered in this sample. New technologies used include video memory management.

The sample is a functional driver, rather than an example with partial code.

BUILDING THE SAMPLE

To build the sample, use the DDK building tool. There are no special installation instructions or known build errors or warnings.

The sample works on both x86 and alpha platforms and is 64-bit compliant. It builds properly with Visual C 6.0. Both checked and free builds are available. The sample does not support Plug and Play or Power Management. Once built, it produces one binary: S3legacy.dll.

CODE TOUR

File Manifest

File		Description

Bank.c		All the banking code for the display driver.
Bitblt.c	High-level DrvBitBlt and DrvCopyBits functions
Bltio.c		The low-level in/out blt functions
Bltmm.c		The low-level memory-mapped IO blt functions
Brush.c		Handles all brush/pattern initialization and realization
Ddraw.c		Implements all the DirectDraw components for the driver
Debug.c		Debug helper routines
Debug.h		Debug helper routines header
Driver.h	Prototypes for the display driver
Enable.c	All functions that enable and disable the driver, the pdev, and the surface
Fastfill.c	Fast routine for drawing polygons that aren't complex in shape
Fillpath.c	The DrvFillPath routine
Heap.c		All the routines for an off-screen video heap manager
Hw.h		All the hardware specific driver file stuff
Lines.c		Required GDI line support routines
Lines.h		Line drawing constants and structures
Lineto.c	Line drawing routines
Makefile	Makefile required to build the driver
Misc.c		Miscellaneous common routines			
Palette.c	Color palette support
Pointer.c	The hardware pointer support for the display driver
Precomp.h	Common headers used throughout the display driver
Res.rc		Resource file for the display driver
Sources		The generic file for building the code sample
Str.c		Routines for the partially hardware accelerated StretchBlt
Stretch.c	StretchBlt routines		
Strips.c	Another line drawing routines
Textout.c	All text drawing routines

Top of page

© 1998 Microsoft Corporation