patch-display_c 524 B

1234567891011121314151617181920
  1. $OpenBSD: patch-display_c,v 1.2 2007/12/27 16:34:19 espie Exp $
  2. --- display.c.orig Mon May 6 16:28:52 1996
  3. +++ display.c Thu Dec 27 16:51:26 2007
  4. @@ -543,7 +543,14 @@ LOCAL void disp_offset(unsigned samp, unsigned para, n
  5. copy3(note2name(note));
  6. copy4(" off");
  7. if (ch->samp->length)
  8. - num3(para * 25600/ch->samp->length);
  9. + {
  10. + int percent;
  11. + percent = para * 25600/ch->samp->length;
  12. + if (percent <= 105)
  13. + num3(percent);
  14. + else
  15. + copy3("???");
  16. + }
  17. else
  18. copy3(empty);
  19. *base++ = '%';