## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Clipping

The presentation driver must perform clipping for drawing and text functions, except for GreDrawLinesInPath and GrePolyShortLine. Clipping for these two functions is done by the graphics engine. The minimum requirement is to render each primitive clipped to a single rectangle and to clip each rectangle in turn. The rectangles can be enumerated as described in GreGetClipRects.

Note: Rectangles might not always be valid. See Drawing to Display Devices .