summaryrefslogtreecommitdiff
path: root/plot
diff options
context:
space:
mode:
Diffstat (limited to 'plot')
-rw-r--r--plot/plot.c7
-rw-r--r--plot/vrml.c2
2 files changed, 2 insertions, 7 deletions
diff --git a/plot/plot.c b/plot/plot.c
index e3cd5bf..948cb64 100644
--- a/plot/plot.c
+++ b/plot/plot.c
@@ -1529,12 +1529,7 @@ static int do_plot_imp(
nanosleep(&ts, NULL);
}
} else if (dowait < 0) {
- struct timespec ts;
- int msec = -dowait * 1000;
-
- ts.tv_sec = msec / 1000;
- ts.tv_nsec = (msec % 1000) * 1000000;
- nanosleep(&ts, NULL);
+ Sleep(-dowait * 1000);
}
if (tpool != nil)
diff --git a/plot/vrml.c b/plot/vrml.c
index 0121c53..5b3f9a1 100644
--- a/plot/vrml.c
+++ b/plot/vrml.c
@@ -877,7 +877,7 @@ double cc[3] /* Surface color, cc == NULL or cc[0] < 0.0 */
fprintf(s->fp," ></Material>\n");
/* Hack to workaround bugs in x3dom trasparency */
if (s->fmt == fmt_x3dom && trans > 0.0)
- fprintf(s->fp," <DepthMode readOnly='true'></depthMode>\n");
+ fprintf(s->fp," <DepthMode readOnly='true'></depthMode>\n", trans);
fprintf(s->fp," </Appearance>\n");
fprintf(s->fp," </Shape>\n");
}