|
61 | 61 |
|
62 | 62 | %% Visual |
63 | 63 |
|
64 | | -cfg.screen = max(Screen('Screens')); % Main screen |
65 | | - |
66 | | -% Open a fullscreen, onscreen window with gray background. Enable 32bpc |
67 | | -% floating point framebuffer via imaging pipeline on it. |
68 | | -PsychImaging('PrepareConfiguration'); |
| 64 | +% Get the screen numbers and draw to the external screen if avaliable |
| 65 | +cfg.screen = max(Screen('Screens')); |
69 | 66 |
|
70 | 67 | % init PTB with different options in concordance to the Debug Parameters |
71 | 68 | if cfg.debug |
|
76 | 73 | Screen('Preferences', 'SuppressAllWarnings', 2); |
77 | 74 |
|
78 | 75 | if cfg.testingSmallScreen |
79 | | - [cfg.win, cfg.winRect] = PsychImaging('OpenWindow', cfg.screen, cfg.backgroundColor, [0,0, 480, 270]); |
| 76 | + [cfg.win, cfg.winRect] = Screen('OpenWindow', cfg.screen, cfg.backgroundColor, [0,0, 480, 270]); |
80 | 77 | else |
81 | 78 | if cfg.testingTranspScreen |
82 | 79 | PsychDebugWindowConfiguration |
83 | 80 | end |
84 | | - [cfg.win, cfg.winRect] = PsychImaging('OpenWindow', cfg.screen, cfg.backgroundColor); |
| 81 | + [cfg.win, cfg.winRect] = Screen('OpenWindow', cfg.screen, cfg.backgroundColor); |
85 | 82 | end |
86 | 83 |
|
87 | 84 | else |
88 | 85 | Screen('Preference','SkipSyncTests', 0); |
89 | | - [cfg.win, cfg.winRect] = PsychImaging('OpenWindow', cfg.screen, cfg.backgroundColor); |
| 86 | + [cfg.win, cfg.winRect] = Screen('OpenWindow', cfg.screen, cfg.backgroundColor); |
90 | 87 |
|
91 | 88 | end |
92 | 89 |
|
|
0 commit comments