Platform Package reference: Function EwEndUpdate()

Description of the function EwEndUpdate() available in all Platform Packages for C compatible target systems. This function is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.

Declaration

void EwEndUpdate( XViewport* aViewport, XRect aArea )

Parameters

aViewport

Viewport to finalize the drawing operations.

aArea

Area modified by the update relative to the top-left corner of the viewport.

Discussion

The function EwEndUpdate() finalizes the screen update cycle for the given viewport. This function flushes all outstanding drawing operations, updates the framebuffer state and frees the temporary bitmap object provided by the previous EwBeginUpdate() or EwBeginUpdateArea() function call.

Depending on the particular platform double buffering is used or the update is synchronized with the V-Sync.

If there was a XViewportProc callback function specified during the initialization of the viewport, the function is called at the fin of the update cycle.