openbsd-ports/audio/tracker/patches/patch-display_c
espie 6cdfc2731a Spring clean-up.
- rename patches to new style.
- bye, bye USE_GMAKE, we have recursive variables now.
- pass COPTS through.
- a few more patches so that we get most prototypes
- integrate COMMENT
2001-04-10 00:51:59 +00:00

20 lines
510 B
Plaintext

$OpenBSD: patch-display_c,v 1.1 2001/04/10 00:52:01 espie Exp $
--- display.c.orig Mon May 6 16:28:52 1996
+++ display.c Tue Apr 10 02:20:49 2001
@@ -543,7 +543,14 @@ LOCAL void disp_offset(unsigned samp, un
copy3(note2name(note));
copy4(" off");
if (ch->samp->length)
- num3(para * 25600/ch->samp->length);
+ {
+ int percent;
+ percent = para * 25600/ch->samp->length;
+ if (percent <= 105)
+ num3(percent);
+ else
+ copy3("???");
+ }
else
copy3(empty);
*base++ = '%';