Browse Source

Simple changes from patches to spice 3f4 (G. Roehrich) that restored the drawing of lines and boxes in plot windows in truecolor displays.

pre-master-46
pnenzi 25 years ago
parent
commit
22acf4b96a
  1. 12
      src/frontend/plotting/graf.c
  2. 5
      src/frontend/plotting/x11.c

12
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:

5
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;

Loading…
Cancel
Save