From 22acf4b96ad36321bd05e54f90b9788f81e57837 Mon Sep 17 00:00:00 2001 From: pnenzi Date: Sun, 15 Apr 2001 19:32:25 +0000 Subject: [PATCH] Simple changes from patches to spice 3f4 (G. Roehrich) that restored the drawing of lines and boxes in plot windows in truecolor displays. --- src/frontend/plotting/graf.c | 12 ++++++++---- src/frontend/plotting/x11.c | 5 ++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/frontend/plotting/graf.c b/src/frontend/plotting/graf.c index 2513d2779..786b8b09c 100644 --- a/src/frontend/plotting/graf.c +++ b/src/frontend/plotting/graf.c @@ -296,9 +296,11 @@ gr_point(struct dvec *dv, if (*tics == (double) np) { Text("x", (int) (tox - currentgraph->fontwidth / 2), (int) (toy - currentgraph->fontheight / 2)); - SaveText(currentgraph, "x", + /* gr_redraw will redraw this w/o our having to save it + Guenther Roehrich 22-Jan-99 */ + /* SaveText(currentgraph, "x", (int) (tox - currentgraph->fontwidth / 2), - (int) (toy - currentgraph->fontheight / 2)); + (int) (toy - currentgraph->fontheight / 2)); */ break; } } @@ -308,9 +310,11 @@ gr_point(struct dvec *dv, /* Draw an 'x' */ Text("x", (int) (tox - currentgraph->fontwidth / 2), (int) (toy - currentgraph->fontheight / 2)); - SaveText(currentgraph, "x", + /* gr_redraw will redraw this w/o our having to save it + Guenther Roehrich 22-Jan-99 */ + /* SaveText(currentgraph, "x", (int) (tox - currentgraph->fontwidth / 2), - (int) (toy - currentgraph->fontheight / 2)); + (int) (toy - currentgraph->fontheight / 2)); */ } break; case PLOT_COMB: diff --git a/src/frontend/plotting/x11.c b/src/frontend/plotting/x11.c index 95613e3ed..9fce9606b 100644 --- a/src/frontend/plotting/x11.c +++ b/src/frontend/plotting/x11.c @@ -155,7 +155,10 @@ X11_Init(void) /* "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;