| GrayDBufToggleSync | Function (Macro)

gray.h

void GrayDBufToggleSync (void);

Synchronizes and toggles the currently visible double buffer.

GrayDBufToggleSync waits until the next plane switch occurs (using GrayWaitNSwitches), then calls GrayDBufToggle. This way you can make sure that the switch is not performed during an update of the screen, which would cause unwanted distortion effects.

See also: GrayDBufToggle, GrayDBufSetActiveIdxSync, GrayDBufSetActiveIdx