The IDirectDrawSurface3::UpdateOverlayDisplay method repaints the rectangles in the dirty rectangle list of all active overlays. This clears the dirty rectangle list. This method is for software emulation only—it does nothing if the hardware supports overlays.
HRESULT UpdateOverlayDisplay(
DWORD dwFlags
);
DDOVER_REFRESHDIRTYRECTS | |
Updates the overlay display using the list of dirty rectangles previously constructed for this destination. This clears the dirty rectangle list. | |
DDOVER_REFRESHALL | |
Ignores the dirty rectangle list and updates the overlay display completely. This clears the dirty rectangle list. |
If the method succeeds, the return value is DD_OK.
If the method fails, the return value may be one of the following error values:
DDERR_INVALIDOBJECT |
DDERR_INVALIDPARAMS |
DDERR_INVALIDSURFACETYPE |
DDERR_UNSUPPORTED |
This method is not currently implemented.
Windows NT: Use version 5.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in ddraw.h.
Import Library: Use ddraw.lib.
IDirectDrawSurface3::AddOverlayDirtyRect