Call this function at the end of a set of drawing functions. It makes sure that all hardware-accelerated drawing functions have finished. If double buffering is enabled it switches the frame buffers and thus eventually causes everything drawn since the last gcFlush() call to be displayed.
- One of the following error codes is returned:
- When double buffering is activated, gcFlush() uses an RTOS sleep function to synchronise the switching of the frame buffers with the display refresh rate. You should not wake up a task, that uses gcFlush(), because this may disturb the synchronisation mechanism and lead to flickering.
- example00.c, example01.c, example02.c, and example05.c.