SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
audio/tracker/patches/patch-display_c
Normal file
18
audio/tracker/patches/patch-display_c
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- display.c.orig Mon May 6 16:28:52 1996
|
||||
+++ display.c Thu Dec 27 16:51:26 2007
|
||||
@@ -543,7 +543,14 @@ LOCAL void disp_offset(unsigned samp, unsigned para, n
|
||||
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++ = '%';
|
Loading…
Add table
Add a link
Reference in a new issue