Skip to content

Commit cdb8808

Browse files
committed
start implementing FOV change on MST
1 parent f92ed0a commit cdb8808

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

subfun/preTrialSetup.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@
3434

3535
thisEvent.fixationPosition = cfg.design.blockFixationPosition{iBlock};
3636

37+
% This is necessary because where the dot aperture is drawn is set in cfg
38+
% So we "reset" that pixel value from the value in degrees
3739
cfg.aperture.xPos = cfg.design.xDisplacementAperture;
3840
cfg.aperture = degToPix('xPos', cfg.aperture, cfg);
41+
if isfield(cfg.fixation, 'xDisplacementPix')
42+
cfg.aperture.xPosPix = cfg.aperture.xPosPix + cfg.fixation.xDisplacementPix;
43+
end
3944

4045
switch thisEvent.fixationPosition
4146

0 commit comments

Comments
 (0)