This method of the DirectDrawSurface Class repositions or modifies the visual attributes of an overlay surface. These surfaces must have the DDSCAPS_OVERLAY value set.
public void updateOverlay(Rect r, DirectDrawSurface ddS, Rect d, int flags);
r | A Rect object that defines the x, y, width, and height of the region on the source surface being used as the overlay. |
ddS | The DirectDrawSurface that is being overlaid. |
d | A Rect object that defines the x, y, width, and height of the region on the destination surface that the overlay should be moved to. |
flags | One or more values of DDOVER_ type. |