Abstract:
A method for flipping an image in a window using overlays involves creating an overlay flipping structure and using this structure to control "flipping" of an overlay image in a display device that supports overlays. A display device interface includes services to create and manipulate an overlay flipping structure including a front buffer and a back buffer. To flip in a window, an application program draws its image to the back buffer of the flipping structure while the overlay control in the display controller reads the overlay image from the front buffer. The overlay control superimposes the overlay in the front buffer with the image in the frame buffer. The display device interface controls the flipping of the overlay by determining when it can change the address of the overlay image used by the display controller without causing flipping.