Skip to content

Commit e80a9f8

Browse files
committed
mh fix
1 parent fefb979 commit e80a9f8

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

src/aperture/apertureTexture.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
CenterRect([0, 0, repmat(cfg.stimRect(3), 1, 2)], cfg.screen.winRect));
9595

9696
% Then we add the position of the bar aperture
97-
97+
9898
% which one is the right and which one is the left??
99-
99+
100100
Screen('FillRect', cfg.aperture.texture, cfg.color.background, ...
101101
[0, ...
102102
0, ...

src/drawFieldOfVIew.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ function drawFieldOfVIew(cfg)
55
% the participant. This can be used during debugging to help design the
66
% stimuli if you know the FOV of the participant will be obstructed by
77
% something
8-
8+
99
if isfield(cfg.screen, 'effectiveFieldOfView') && ...
10-
numel(cfg.screen.effectiveFieldOfView)==2
10+
numel(cfg.screen.effectiveFieldOfView) == 2
1111

1212
RED = [255 0 0];
1313
penWidth = 2;
1414

1515
fov = cfg.screen.effectiveFieldOfView;
1616

17-
fov = CenterRect(...
17+
fov = CenterRect( ...
1818
[0, 0, fov(1), fov(2)], ...
1919
cfg.screen.winRect);
2020

@@ -24,5 +24,5 @@ function drawFieldOfVIew(cfg)
2424
fov, ...
2525
penWidth);
2626
end
27-
28-
end
27+
28+
end

src/initPTB.m

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,19 @@
4545
cfg = initAudio(cfg);
4646

4747
%% Visual
48-
48+
4949
% Make sure we have black splash screen
5050
Screen('Preference', 'VisualDebugLevel', 1);
5151

5252
% Get the screen numbers and draw to the external screen if avaliable
5353
cfg.screen.idx = max(Screen('Screens'));
54-
55-
56-
54+
5755
if isfield(cfg.screen, 'resolution')
5856
[newWidth, newHeight, newHz] = deal(cfg.screen.resolution{:});
5957
cfg.screen.oldResolution = Screen('Resolution', cfg.screen.idx, ...
60-
newWidth, newHeight, newHz);
58+
newWidth, newHeight, newHz);
6159
end
62-
60+
6361
cfg = openWindow(cfg);
6462

6563
% window size info
@@ -128,7 +126,7 @@ function initDebug(cfg)
128126
Screen('Preference', 'SkipSyncTests', 2);
129127
Screen('Preference', 'Verbosity', 0);
130128
Screen('Preference', 'SuppressAllWarnings', 1);
131-
129+
132130
fprintf('\n\n\n\n');
133131
fprintf('########################################\n');
134132
fprintf('## DEBUG MODE. TIMING WILL BE OFF. ##\n');

0 commit comments

Comments
 (0)