Fixed the mdgradient code.
commit56cacb933697bb2d598dc10f1d5f9faa69a64f72
authordan <dan>
Wed, 24 May 2000 22:47:54 +0000 (24 22:47 +0000)
committerdan <dan>
Wed, 24 May 2000 22:47:54 +0000 (24 22:47 +0000)
treedd838e2cef1240e4f836273b360ed74a31abae70
parent3e0c6920a92dab8f01b79638598aa1c92c56f397
Fixed the mdgradient code.

P.S. Please, that piece of code is perfectly valid, there's no need to
break it every month. There is nothing wrong with it, still it was
changed (and simultaneously broken) 4 or 5 times already.
That code use a smart trick to draw the multi diagonal gradient using
integer operations, that is perfectly valid and moreover is much faster
than the classical floating point calculation algorithm that was used
before, so there is no need to randomly 'fix' it every now and then.
If you don't understand how it works please ask.
wrlib/gradient.c