diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-12-03 20:59:33 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-12-03 20:59:33 +0100 |
commit | 94df2a130b18b94515a9e80c0ca58c11c2e5b165 (patch) | |
tree | 4246522833836235671146ebaf4252a98eba4d1f /fitz | |
parent | c639b84d440cac6dc6e3406fbf647a4bd219ca6f (diff) | |
download | mupdf-94df2a130b18b94515a9e80c0ca58c11c2e5b165.tar.xz |
Change fz_mul255 according to suggestion by gka.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/fitz_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/fitz_base.h b/fitz/fitz_base.h index 769cd284..71804caf 100644 --- a/fitz/fitz_base.h +++ b/fitz/fitz_base.h @@ -213,7 +213,7 @@ void *fz_hashgetval(fz_hashtable *table, int idx); */ /* multiply 8-bit fixpoint (0..1) so that 0*0==0 and 255*255==255 */ -#define fz_mul255(a,b) (((a) * ((b) + 1)) >> 8) +#define fz_mul255(a,b) (((a) * ((b) + ((b) >> 7))) >> 8) #define fz_floor(x) floor(x) #define fz_ceil(x) ceil(x) |