DrvSwapBuffers

BOOL DrvSwapBuffers(

    IN SURFOBJ *pso,

    IN WNDOBJ *pwo

   );

DrvSwapBuffers displays the contents of the window’s associated hidden buffer on the specified surface.

Parameters

pso
Points to the target surface that will be modified for display.
pwo
Points to the window object that defines the region on the target surface with which the back buffer will be swapped.

Return Value

The return value is TRUE if the function is successful; it is FALSE upon failure.

Comments

DrvSwapBuffers can affect the display only if the pixel format for the window specified by pwo is double-buffered. The content of the hidden buffer is undefined after the swap occurs.

This function is required if the driver supports a pixel format with double buffering; that is, if PFD_DOUBLEBUFFER is set in the dwFlags member of the PIXELFORMATDESCRIPTOR structure.

See Also

DrvDescribePixelFormat