From c6739b6427261ac2682a9fca3b23c98df0dc9f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 6 Nov 2015 07:40:42 +0100 Subject: New upstream release --- plot/plot.c | 7 ++++++- plot/vrml.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'plot') diff --git a/plot/plot.c b/plot/plot.c index 948cb64..e3cd5bf 100644 --- a/plot/plot.c +++ b/plot/plot.c @@ -1529,7 +1529,12 @@ static int do_plot_imp( nanosleep(&ts, NULL); } } else if (dowait < 0) { - Sleep(-dowait * 1000); + struct timespec ts; + int msec = -dowait * 1000; + + ts.tv_sec = msec / 1000; + ts.tv_nsec = (msec % 1000) * 1000000; + nanosleep(&ts, NULL); } if (tpool != nil) diff --git a/plot/vrml.c b/plot/vrml.c index 5b3f9a1..0121c53 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," >\n"); /* Hack to workaround bugs in x3dom trasparency */ if (s->fmt == fmt_x3dom && trans > 0.0) - fprintf(s->fp," \n", trans); + fprintf(s->fp," \n"); fprintf(s->fp," \n"); fprintf(s->fp," \n"); } -- cgit v1.2.3