diff options
author | itohy <itohy@pkgsrc.org> | 2001-11-18 05:37:43 +0000 |
---|---|---|
committer | itohy <itohy@pkgsrc.org> | 2001-11-18 05:37:43 +0000 |
commit | 27bcd3e44f46b5e794dfc4c4e63d91b7df857c2f (patch) | |
tree | 38d81fbfc205f4027bd7ed0637146c6b69b1e79a /audio/xwave | |
parent | ab5e21bfcd5649dd571dab033b58a44cc8baae1a (diff) | |
download | pkgsrc-27bcd3e44f46b5e794dfc4c4e63d91b7df857c2f.tar.gz |
Avoid selecting outside of the waveform,
which causes hang on copy or cut operation.
Diffstat (limited to 'audio/xwave')
-rw-r--r-- | audio/xwave/distinfo | 4 | ||||
-rw-r--r-- | audio/xwave/patches/patch-ah | 15 |
2 files changed, 14 insertions, 5 deletions
diff --git a/audio/xwave/distinfo b/audio/xwave/distinfo index ec04ce2ac76..fbabfbbda4a 100644 --- a/audio/xwave/distinfo +++ b/audio/xwave/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2001/11/17 15:17:41 itohy Exp $ +$NetBSD: distinfo,v 1.4 2001/11/18 05:37:43 itohy Exp $ SHA1 (xwave2.tar.gz) = 7ace9911c9425eab4907a34694cd208d21a6dac2 Size (xwave2.tar.gz) = 269942 bytes @@ -9,7 +9,7 @@ SHA1 (patch-ad) = 373a8b9aff67f768e4968c349298f74d0d3deb5f SHA1 (patch-ae) = 9b4fed9bb232334f2fcaaf59db152d1b078f3702 SHA1 (patch-af) = 01d5fdad2c7056252ab64c49d9ebb06c7b5fbf6c SHA1 (patch-ag) = 8105ecafd316493fb2f13053e824e53d5192e389 -SHA1 (patch-ah) = fad386065d63b53d035e8a92d83cd4ed489c243c +SHA1 (patch-ah) = 61449264babde8d304f93084dbfa194d9a8b07c8 SHA1 (patch-ai) = 34cd50fc75d5dd604349d5f694a993f23d87a24a SHA1 (patch-aj) = 6705d6249ccb8c5e43bfbd5db3ddacd1ed5dd194 SHA1 (patch-ak) = cab81a7ad665ecabf09cae3908b13cef17f3ca17 diff --git a/audio/xwave/patches/patch-ah b/audio/xwave/patches/patch-ah index a545cdff08e..6ae55cd8351 100644 --- a/audio/xwave/patches/patch-ah +++ b/audio/xwave/patches/patch-ah @@ -1,7 +1,7 @@ -$NetBSD: patch-ah,v 1.3 2001/11/17 15:17:42 itohy Exp $ +$NetBSD: patch-ah,v 1.4 2001/11/18 05:37:44 itohy Exp $ --- src/graphics.c.orig Thu Aug 13 08:27:09 1998 -+++ src/graphics.c Sun Nov 18 00:06:53 2001 ++++ src/graphics.c Sun Nov 18 13:32:53 2001 @@ -30,7 +30,7 @@ #ifdef linux @@ -11,7 +11,16 @@ $NetBSD: patch-ah,v 1.3 2001/11/17 15:17:42 itohy Exp $ #include <machine/endian.h> #elif defined (sgi) #include <sys/endian.h> -@@ -2064,6 +2064,9 @@ +@@ -1758,6 +1758,8 @@ + md->wd->markbeg=ceil(event->x*md->mg->step); + md->wd->marklength=ceil((firstmark-event->x)*md->mg->step); + } ++ if (md->wd->markbeg + md->wd->marklength > md->wd->tlength) ++ md->wd->marklength = md->wd->tlength - md->wd->markbeg; + md->wd->ismark=True; + md->wd->isplay=False; + md->cg->pos=(md->wd->markbeg+md->wd->marklength)*md->wd->bpspl; +@@ -2064,6 +2066,9 @@ if (XPending(dpy)) { XPeekEvent(dpy,&pev); switch (pev.type) { |