Back to MATLAB Programming/Psychtoolbox
% ptb_ind_flip.m
% This function is set up to allow the same code to be used in the
% new and old versions of psychtoolbox
%
% screen_setup should be called at the begining of your script. This
% should be called whenever you want to put what you have drawn
% on the screen.
% Revision History:
% RobKohr - April 7, 2005 - First draft
if(osx ==1)
Screen(window,'Flip');
else
Screen('CopyWindow', window, window_ptr);
Screen('CopyWindow', blank, window);
Screen(window_ptr, 'WaitBlanking');
end