This function refreshes a portion of the window and displays the existing surface's pixels.
Parameter | Description |
---|---|
x |
The x coordinate of the window's portion to refresh, in pixels. |
y |
The y coordinate of the window's portion to refresh, in pixels. |
w |
The width of the window's portion to refresh, in pixels. |
h |
The height of the window's portion to refresh, in pixels. |
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.