This function attaches to the window a memory buffer that stores the surface's pixels and then immediately refreshes the window and displays the surface's pixels.
Parameter | Description |
---|---|
pixels |
Pointer to a memory buffer that stores the surface's pixels. The pixels must be stored in D-Type's 32 RGB format. This format uses four bytes per pixel: the first three bytes represent the B, G and R color components, while the last byte is unused. Pixels in this surface format can be generated, for example, by calling the dtOutputSetAsMDC function and setting its format parameter to 32 and subformat parameter to 0. |
flags |
A bitmask of event flags. Currently only bit value 1 is supported. When set, this value tells the display to immediately dispatch any event messages accumulated during the refresh of the window to the event-driven callbacks. |
If the function was successful, the return value is 1. Otherwise, the function returns 0.