1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/audio/nas/files/patch-ad
Masafumi Max NAKANE 9836af420c Replaced several hunks that didn't apply properly.
Also, removed one hunk from patch-ac which seemed no longer needed.
1996-10-05 04:09:15 +00:00

56 lines
1.3 KiB
Plaintext

*** 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);