From 9491825ddff7a294d1f49061bae7044e426aeb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 6 Nov 2015 05:38:49 +0100 Subject: Imported Upstream version 1.8.3 --- plot/Imakefile | 0 plot/Jamfile | 0 plot/License.txt | 0 plot/Readme.txt | 0 plot/X3DOM_LICENSE.txt | 0 plot/afiles | 0 plot/plot.c | 7 ++++++- plot/plot.h | 0 plot/vrml.c | 2 +- plot/vrml.h | 0 plot/x3dom.css | 0 plot/x3dom.css.h | 0 plot/x3dom.js | 0 plot/x3dom.js.h | 0 14 files changed, 7 insertions(+), 2 deletions(-) mode change 100644 => 100755 plot/Imakefile mode change 100644 => 100755 plot/Jamfile mode change 100644 => 100755 plot/License.txt mode change 100644 => 100755 plot/Readme.txt mode change 100644 => 100755 plot/X3DOM_LICENSE.txt mode change 100644 => 100755 plot/afiles mode change 100644 => 100755 plot/plot.c mode change 100644 => 100755 plot/plot.h mode change 100644 => 100755 plot/vrml.c mode change 100644 => 100755 plot/vrml.h mode change 100644 => 100755 plot/x3dom.css mode change 100644 => 100755 plot/x3dom.css.h mode change 100644 => 100755 plot/x3dom.js mode change 100644 => 100755 plot/x3dom.js.h (limited to 'plot') diff --git a/plot/Imakefile b/plot/Imakefile old mode 100644 new mode 100755 diff --git a/plot/Jamfile b/plot/Jamfile old mode 100644 new mode 100755 diff --git a/plot/License.txt b/plot/License.txt old mode 100644 new mode 100755 diff --git a/plot/Readme.txt b/plot/Readme.txt old mode 100644 new mode 100755 diff --git a/plot/X3DOM_LICENSE.txt b/plot/X3DOM_LICENSE.txt old mode 100644 new mode 100755 diff --git a/plot/afiles b/plot/afiles old mode 100644 new mode 100755 diff --git a/plot/plot.c b/plot/plot.c old mode 100644 new mode 100755 index 948cb64..e3cd5bf --- 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/plot.h b/plot/plot.h old mode 100644 new mode 100755 diff --git a/plot/vrml.c b/plot/vrml.c old mode 100644 new mode 100755 index 5b3f9a1..0121c53 --- 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"); } diff --git a/plot/vrml.h b/plot/vrml.h old mode 100644 new mode 100755 diff --git a/plot/x3dom.css b/plot/x3dom.css old mode 100644 new mode 100755 diff --git a/plot/x3dom.css.h b/plot/x3dom.css.h old mode 100644 new mode 100755 diff --git a/plot/x3dom.js b/plot/x3dom.js old mode 100644 new mode 100755 diff --git a/plot/x3dom.js.h b/plot/x3dom.js.h old mode 100644 new mode 100755 -- cgit v1.2.3