summaryrefslogtreecommitdiff
path: root/audio/nas/patches/patch-ad
blob: 06c979d270efceccbbae2d2b6ca4c0930b8e02ae (plain)
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	Wed Dec  6 10:11:03 1995
--- clients/audio/auedit/Graph.c	Sat Oct  5 11:37:52 1996
***************
*** 28,34 ****
   */
  
  #ifndef WIN32
! #include <values.h>
  #else /* WIN32 */
  #define MAXSHORT 0x7fff
  #endif /* WIN32 */
--- 28,34 ----
   */
  
  #ifndef WIN32
! #include <limits.h>
  #else /* WIN32 */
  #define MAXSHORT 0x7fff
  #endif /* WIN32 */
***************
*** 322,329 ****
  
  		for (x = 0; x < (int) w->core.width; x++)
  		{
! 		    minY = MAXSHORT;
! 		    maxY = -MAXSHORT;
  
  		    for (; (int) k == x && p < end; k += w->graph.hscale)
  		    {
--- 322,329 ----
  
  		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)
  		    {
***************
*** 391,397 ****
  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);
--- 391,397 ----
  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);