This file is indexed.

/usr/share/psychtoolbox-3/PsychDemos/AlphaImageDemo/WindowCenter.m is in psychtoolbox-3-common 3.0.11.20140816.dfsg1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
function [x,y] = WindowCenter(window)
% USAGE: [x,y] = WindowCenter(window)
% Returns a window's center point.

% History
% 26/03/2001    fwc made based on rectcenter
% 05-02-04      fwc OS X PTB compatible
if nargin~=1
	error('Usage:  [x,y] = WindowCenter(window)');
end

rect=Screen('Rect',window);
[x,y] = RectCenter(rect);