diff options
author | Maho Nakata <maho@FreeBSD.org> | 2003-07-19 03:13:48 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2003-07-19 03:13:48 +0000 |
commit | 43801110c646ef25f3baa85796b629a83c545120 (patch) | |
tree | 76e9f483a855c61a3d3be02455d23d486ffc43f7 /cad/spice/files/patch-src_lib_fte_x11_c | |
parent | PR: (diff) |
1. REAL cleaning on this port. The files dir is now organized so the
port can be maintained: previously there were multifile patches and several
patches for the same file, now it is a lot cleaner.
2. I also merged a memory leak fix and some fixes from
spice3f5-spaghetti.
4. MFB and removed GNUREADLINE support
5. honor CFLAGS and CC.
6. Add documentation.
7. Maho didn't change the name of port spice to spice3.
because spice4 might :) appear in the future. version number
should be listed on *only* PORTVERSION.
8. drom maintainership
PR: 54603
Submitted by: "Pedro F. Giffuni" <giffunip@yahoo.com>
Diffstat (limited to 'cad/spice/files/patch-src_lib_fte_x11_c')
-rw-r--r-- | cad/spice/files/patch-src_lib_fte_x11_c | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/cad/spice/files/patch-src_lib_fte_x11_c b/cad/spice/files/patch-src_lib_fte_x11_c new file mode 100644 index 000000000000..b10456e700a8 --- /dev/null +++ b/cad/spice/files/patch-src_lib_fte_x11_c @@ -0,0 +1,67 @@ +--- src/lib/fte/x11.c.orig Thu Jul 17 10:55:00 2003 ++++ src/lib/fte/x11.c Thu Jul 17 11:39:05 2003 +@@ -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,11 +808,13 @@ + { + + GRAPH *graph = (GRAPH *) client_data; ++ Widget w; + + /* Iplots are done asynchronously */ + DEVDEP(graph).isopen = 0; ++ w = DEVDEP(graph).shell; + DestroyGraph(graph->graphid); +- XtDestroyWidget(DEVDEP(graph).shell); ++ XtDestroyWidget(w); + + } + +@@ -945,7 +950,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))) { +@@ -998,7 +1004,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; |