Mercurial > hg > dmlib
changeset 159:f1aa6e90ad22
Fix sample display.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 05:39:26 +0300 |
parents | 255da2a698fe |
children | 67d2cba58a87 |
files | ppl.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ppl.c Sat Oct 06 05:30:22 2012 +0300 +++ b/ppl.c Sat Oct 06 05:39:26 2012 +0300 @@ -270,7 +270,7 @@ for (xc = x0 + 1; xc < x1 - 1; xc++) { - Sint16 val = ym + (data[FP_GETH(offs)] * yh * vol) / (65536 * 128); + Sint16 val = ym + (data[FP_GETH(offs)] * yh * vol) / (65535 * 255); pix[xc + val * pitch] = coln; if (chn->chDirection) FP_ADD(offs, chn->chDeltaO);