On Sat, Jun 16, 2007 at 12:29:55PM +0200, Michael Gerz wrote:

> [EMAIL PROTECTED] schrieb:
> > Author: rgheck
> > Date: Wed Jun  6 21:33:57 2007
> > New Revision: 18692
> >
> > URL: http://www.lyx.org/trac/changeset/18692
> > Log:
> > Fix bug 3823: Division needs not to return an integer.
> >
> > Also added some comments about a different possible fix.
> >
> >   
> Two things:
>  - Why do we divide by 255 and not by 256?

If the range [0, 255] is to be translated to the range [0.0, 1.0], you
must divide by 255 and not 256.

-- 
Enrico

Reply via email to