summaryrefslogtreecommitdiff
path: root/audio/nas/files/patch-ad
blob: 6e9fe4a45c5c36b3a34e96527e70db3f3b7b8576 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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);