Skip to content

Commit ab1d950

Browse files
committed
few more updates
1 parent bdac991 commit ab1d950

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

computeFOV.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
function FOV = computeFOV(cfg)
22
% FOV = computeFOV(cfg)
3+
%
34
% computes the number of degrees of visual angle in the whole field of view
45
%
56

6-
FOV = 2 * (180 * (atan(cfg.monitorWidth / (2 * cfg.screenDistance)) / pi));
7+
FOV = 2 * ...
8+
(180 * (atan(cfg.screen.monitorWidth / (2 * cfg.screen.monitorDistance)) / pi));
79

810
end

initPTB.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ function initDebug(cfg)
182182

183183
function initText(cfg)
184184

185-
Screen('TextFont', cfg.win, cfg.text.font);
186-
Screen('TextSize', cfg.win, cfg.text.size);
187-
Screen('TextStyle', cfg.win, cfg.text.style);
185+
Screen('TextFont', cfg.screen.win, cfg.text.font);
186+
Screen('TextSize', cfg.screen.win, cfg.text.size);
187+
Screen('TextStyle', cfg.screen.win, cfg.text.style);
188188

189189
end

0 commit comments

Comments
 (0)