123456789101112131415161718192021222324252627282930313233 |
- function [window, screen_dimensions, screenNum, CenterX, CenterY, ifi] = JA_Screen_Settings(tinker)
- PsychDefaultSetup(2);
- PsychImaging('PrepareConfiguration');
- PsychImaging('AddTask', 'General', 'FloatingPoint32Bit');
- screenNum = max(Screen('Screens')); % Screen Number
- if tinker == 0
- [window, screen_dimensions] = PsychImaging('OpenWindow', screenNum);
- else
- [window, screen_dimensions] = PsychImaging('OpenWindow', screenNum, [],[0 0 640 360]);
- Screen('Preference', 'SkipSyncTests', 1)
- end
- ifi = Screen('GetFlipInterval', window);
- [CenterX, CenterY] = RectCenter(screen_dimensions);%variabile coordinate centro dell schermo, [orizzontale verticale]
- disp(ifi)
- % Maximum priority level
- topPriorityLevel = MaxPriority(window);
- Priority(topPriorityLevel);
- end
|