MGL_putDivot

Replaces a divot of video memory to the location from which it was copied.

Declaration

void MGLAPI MGL_putDivot(
MGLDC *dc,
void *divot)

Prototype In

mgraph.h

Parameters

dc | Device context to restore the divot to
divot | Pointer to the divot to replace

Description

This function replaces a rectangle of video memory that was saved previously with the MGL_getDivot function. The divot is replaced at the same location that is was taken from on the current device context.

A divot is defined as being a rectangular area of video memory that you wish to save, however the bounding rectangle for the divot is expanded slightly to properly aligned boundaries for the absolute maximum performance with the current device context. This function is generally used to store the video memory behind pull down menus and pop up dialog boxes, and the memory can only be restored to exactly the same position that it was saved from.

See Also

MGL_divotSize

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com