2007-12-27 11:34:19 -05:00
|
|
|
$OpenBSD: patch-display_c,v 1.2 2007/12/27 16:34:19 espie Exp $
|
2001-04-09 20:51:59 -04:00
|
|
|
--- display.c.orig Mon May 6 16:28:52 1996
|
2007-12-27 11:34:19 -05:00
|
|
|
+++ display.c Thu Dec 27 16:51:26 2007
|
|
|
|
@@ -543,7 +543,14 @@ LOCAL void disp_offset(unsigned samp, unsigned para, n
|
1998-10-02 13:19:44 -04:00
|
|
|
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++ = '%';
|