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