File: cleanup.c

package info (click to toggle)
pgplot5 5.2-13
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 6,280 kB
  • ctags: 5,903
  • sloc: fortran: 37,938; ansic: 18,809; sh: 1,147; objc: 532; makefile: 363; perl: 234; pascal: 233; tcl: 178; awk: 51; csh: 25
file content (38 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* The cleanup routine cleans up everything necessary to shut down the */
/* FIGARO/PGPLOT display server nicely. */

/* Sam Southard, Jr. */
/* Created: 11-Nov-1990 */
/* 10-Dec-1990	SNS/CIT	Modified to use wininfo structure */
/* 10-May-1991	SNS/CIT	Modified to live with Lick's Xvideo */
/*  7-Aug-1991	SNS/CIT	Now deals with OpenWindows bug. */
/* 15-Aug-1991	SNS/CIT	No longer includes vista hooks. */
/*  8-Oct-1991	SNS/CIT	Modified for cleaner wininfo struct */

/* The X Window include files */
#include <X11/Xlib.h>

/* The program include files */
#include "figdisp.h"
#include "globals.h"

void cleanup()
{
	void restorecolors();

#ifndef PGDISP
#ifndef UNBUGGY
	/* deal with OpenWindows bug an restore the color maps to what they */
	/* used to be */
	restorecolors();
#endif
#endif

	/* Release the line graphics graphics context */
	XFreeGC(display,linegc);

	/* shut down this channel to the display */
	XCloseDisplay(display);

	return;
}