Skip to content

Commit b210b61

Browse files
committed
update how PTB opens a window to the easiest way
1 parent dbb8d78 commit b210b61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

initPTB.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@
7676
Screen('Preferences', 'SuppressAllWarnings', 2);
7777

7878
if cfg.testingSmallScreen
79-
[cfg.win, cfg.winRect] = PsychImaging('OpenWindow', cfg.screen, cfg.backgroundColor, [0,0, 480, 270]);
79+
[cfg.win, cfg.winRect] = Screen('OpenWindow', cfg.screen, cfg.backgroundColor, [0,0, 480, 270]);
8080
else
8181
if cfg.testingTranspScreen
8282
PsychDebugWindowConfiguration
8383
end
84-
[cfg.win, cfg.winRect] = PsychImaging('OpenWindow', cfg.screen, cfg.backgroundColor);
84+
[cfg.win, cfg.winRect] = Screen('OpenWindow', cfg.screen, cfg.backgroundColor);
8585
end
8686

8787
else
8888
Screen('Preference','SkipSyncTests', 0);
89-
[cfg.win, cfg.winRect] = PsychImaging('OpenWindow', cfg.screen, cfg.backgroundColor);
89+
[cfg.win, cfg.winRect] = Screen('OpenWindow', cfg.screen, cfg.backgroundColor);
9090

9191
end
9292

0 commit comments

Comments
 (0)