~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to PsychSourceGL/Source/Common/Screen/ScreenExit.c

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
        PsychToolbox2/Source/Common/Screen/ScreenExit.cpp               
3
 
 
4
 
        AUTHORS:
5
 
        
6
 
                Allen.Ingling@nyu.edu           awi 
7
 
 
8
 
        PLATFORMS:      
9
 
        
10
 
                Only OS X fow now.  
11
 
 
12
 
 
13
 
        HISTORY:
14
 
        
15
 
                12/20/01        awi             Created.
16
 
                1/25/04         awi             Added update provided by mk. It makes the ScreenCloseAllWindows call.  
17
 
                7/22/05         mk              Added call to CloseWindowBank() to free dynamic window bank array.
18
 
        DESCRIPTION:
19
 
        
20
 
                ScreenExitFunction is called before the Screen module is flushed.
21
 
 
22
 
        T0 DO:
23
 
                
24
 
                
25
 
 
26
 
 
 
2
    PsychToolbox3/Source/Common/Screen/ScreenExit.cpp           
 
3
 
 
4
    AUTHORS:
 
5
 
 
6
        Allen.Ingling@nyu.edu           awi
 
7
        mario.kleiner@tuebingen.mpg.de  mk
 
8
 
 
9
    PLATFORMS:  
 
10
 
 
11
        All.
 
12
 
 
13
    HISTORY:
 
14
 
 
15
        12/20/01    awi     Created.
 
16
        1/25/04     awi     Added update provided by mk. It makes the ScreenCloseAllWindows call.  
 
17
        7/22/05     mk      Added call to CloseWindowBank() to free dynamic window bank array.
 
18
 
 
19
    DESCRIPTION:
 
20
 
 
21
        ScreenExitFunction is called before the Screen module is flushed.
27
22
*/
28
23
 
29
24
#include "Screen.h"
41
36
        ScreenCloseAllWindows();
42
37
        CloseWindowBank();
43
38
 
44
 
        #if PSYCH_SYSTEM == PSYCH_LINUX
45
 
                // Linux specific hack. Close display connection(s) to X-Server(s). This is a bit unclean.
46
 
                PsychCleanupDisplayGlue();
47
 
        #endif
 
39
    // Shutdown low-level display glue (Screens, displays, kernel-drivers et al.):
 
40
    PsychCleanupDisplayGlue();
48
41
 
49
 
        #if PSYCH_SYSTEM == PSYCH_OSX
50
 
                // Shutdown connection to kernel level driver, if any exists:
51
 
                PsychOSShutdownPsychtoolboxKernelDriverInterface();
52
 
        #endif
53
 
        
54
42
        // Cleanup internal data structures of SCREEN('FillPoly');
55
43
        // This is defined in Common/Screen/SCREENFillPoly.c
56
44
        PsychCleanupSCREENFillPoly();