summaryrefslogtreecommitdiff
path: root/cad/spice/files/patch-src_lib_fte_x11_c
blob: 05875dc0c429dbe69f4d4b6fda2a2f80a59d8a9c (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
--- src/lib/fte/x11.c.orig	Wed Apr 14 21:44:56 1993
+++ src/lib/fte/x11.c	Sun Aug 15 19:06:31 2004
@@ -120,7 +120,10 @@
 	/* "invert" works better than "xor" for B&W */
 
 	/* xor gc should be a function of the pixels that are written on */
-	gcvalues.function = GXxor;
+	/* gcvalues.function = GXxor; */
+	/* this patch makes lines visible on true color displays
+           Guenther Roehrich 22-Jan-99 */
+	gcvalues.function = GXinvert;
 	gcvalues.line_width = 1;
 	gcvalues.foreground = 1;
 	gcvalues.background = 0;
@@ -302,7 +305,7 @@
 	return (0);
 }
 
-static
+/* PN static */
 initlinestyles()
 {
 
@@ -318,7 +321,7 @@
 	return;
 }
 
-static
+/* PN static */
 initcolors(graph)
     GRAPH *graph;
 {
@@ -805,8 +808,9 @@
 
 	/* Iplots are done asynchronously */
 	DEVDEP(graph).isopen = 0;
+	w = DEVDEP(graph).shell;
 	DestroyGraph(graph->graphid);
-	XtDestroyWidget(DEVDEP(graph).shell);
+	XtDestroyWidget(w);
 
 }
 
@@ -942,7 +946,8 @@
 	            1 << ConnectionNumber(display);
 
 	      /* block on ConnectionNumber and request->fp */
-	      select(nfds + 1, &readfds, (int *) NULL, (int *) NULL, NULL);
+	      /* PN added fd_set * casting */
+	      select(nfds + 1, (fd_set *) &readfds, (fd_set *) NULL, (fd_set *) NULL, NULL);
 
 	      /* handle X events first */
 	      if (readfds & (1 << ConnectionNumber(display))) {
@@ -995,7 +1000,8 @@
 
 }
 
-static X_ScreentoData(graph, x, y, fx, fy)
+/* PN static */ 
+X_ScreentoData(graph, x, y, fx, fy)
 GRAPH *graph;
 int x,y;
 double *fx, *fy;