aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1994-11-07 09:47:40 +0800
committergibbs <gibbs@FreeBSD.org>1994-11-07 09:47:40 +0800
commit9b5d0be3df9ad72a7ec1a2e062fb98d0fd09f862 (patch)
treeab7a68381aeb5cba098dbfa34954c3cd1c6eca02 /audio
parentab8a64c8fc2cc67a5f7982703b4e74ec047edd3c (diff)
downloadfreebsd-ports-gnome-9b5d0be3df9ad72a7ec1a2e062fb98d0fd09f862.tar.gz
freebsd-ports-gnome-9b5d0be3df9ad72a7ec1a2e062fb98d0fd09f862.tar.zst
freebsd-ports-gnome-9b5d0be3df9ad72a7ec1a2e062fb98d0fd09f862.zip
There is no longer a values.h in 2.0. Remove the reference to it and use
limits.h instead. MAXSHORT -> SHRT_MAX -MAXSHORT -> SHRT_MIN
Diffstat (limited to 'audio')
-rw-r--r--audio/nas/files/patch-ad55
1 files changed, 55 insertions, 0 deletions
diff --git a/audio/nas/files/patch-ad b/audio/nas/files/patch-ad
new file mode 100644
index 000000000000..6e9fe4a45c5c
--- /dev/null
+++ b/audio/nas/files/patch-ad
@@ -0,0 +1,55 @@
+*** clients/audio/auedit/Graph.c.orig Thu Apr 7 11:19:00 1994
+--- clients/audio/auedit/Graph.c Sun Nov 6 17:16:59 1994
+***************
+*** 27,33 ****
+ * $NCDId: @(#)Graph.c,v 1.10 1994/04/07 18:19:00 greg Exp $
+ */
+
+! #include <values.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include "GraphP.h"
+--- 27,33 ----
+ * $NCDId: @(#)Graph.c,v 1.10 1994/04/07 18:19:00 greg Exp $
+ */
+
+! #include <limits.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include "GraphP.h"
+***************
+*** 318,325 ****
+
+ for (x = 0; x < (int) w->core.width; x++)
+ {
+! minY = MAXSHORT;
+! maxY = -MAXSHORT;
+
+ for (; (int) k == x && p < end; k += w->graph.hscale)
+ {
+--- 318,325 ----
+
+ for (x = 0; x < (int) w->core.width; x++)
+ {
+! minY = SHRT_MAX;
+! maxY = SHRT_MIN;
+
+ for (; (int) k == x && p < end; k += w->graph.hscale)
+ {
+***************
+*** 387,393 ****
+ GraphWidget w;
+ {
+ w->graph.vscale = (float) w->core.height / w->graph.numTracks /
+! (MAXSHORT - -MAXSHORT + 1);
+
+ w->graph.hscale = (float) ((int) w->core.width - 1) /
+ (w->graph.end - w->graph.start);
+--- 387,393 ----
+ GraphWidget w;
+ {
+ w->graph.vscale = (float) w->core.height / w->graph.numTracks /
+! (SHRT_MAX - SHRT_MIN + 1);
+
+ w->graph.hscale = (float) ((int) w->core.width - 1) /
+ (w->graph.end - w->graph.start);