| GrayDBufSetActiveIdxSync | Function (Macro)

gray.h

void GrayDBufSetActiveIdxSync (short idx);

Synchronizes and sets the currently visible double buffer.

GrayDBufSetActiveIdxSync waits until the next plane switch occurs (using GrayWaitNSwitches), then calls GrayDBufSetActiveIdx. 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: GrayDBufSetActiveIdx, GrayDBufToggleSync, GrayDBufToggle, GrayDBufGetActiveIdx, GrayDBufGetHiddenIdx