summaryrefslogtreecommitdiff
path: root/include/fitz/draw_misc.h
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2008-09-02 01:32:45 +0200
committerTor Andersson <tor@ghostscript.com>2008-09-02 01:32:45 +0200
commit98a12532a6df4cf6f13d109e93e3e236bf3489a4 (patch)
tree83ce8b9cd02d672bd03776bb40c56c0323b99e3b /include/fitz/draw_misc.h
parent0f168c6810aa8f031fe546312fda81e274c9be80 (diff)
downloadmupdf-98a12532a6df4cf6f13d109e93e3e236bf3489a4.tar.xz
Use unsigned char type for coverage calculations to keep the value inside the ring 0..255. This fixes a leaking pixel bug when drawing alpha blended paths.
Diffstat (limited to 'include/fitz/draw_misc.h')
-rw-r--r--include/fitz/draw_misc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fitz/draw_misc.h b/include/fitz/draw_misc.h
index fe25b956..3eeefcfb 100644
--- a/include/fitz/draw_misc.h
+++ b/include/fitz/draw_misc.h
@@ -23,9 +23,9 @@ extern void (*fz_duff_4i1c4)(FZ_BYTE*,int,FZ_BYTE*,int,FZ_BYTE*,int,int,int);
extern void (*fz_duff_1i1o1)(FZ_BYTE*,int,FZ_BYTE*,int,FZ_BYTE*,int,int,int);
extern void (*fz_duff_4i1o4)(FZ_BYTE*,int,FZ_BYTE*,int,FZ_BYTE*,int,int,int);
-extern void (*fz_path_1c1)(FZ_BYTE*,int,int,FZ_BYTE*);
-extern void (*fz_path_1o1)(FZ_BYTE*,int,int,FZ_BYTE*);
-extern void (*fz_path_w4i1o4)(FZ_BYTE*,FZ_BYTE*,int,int,FZ_BYTE*);
+extern void (*fz_path_1c1)(FZ_BYTE*,unsigned char,int,FZ_BYTE*);
+extern void (*fz_path_1o1)(FZ_BYTE*,unsigned char,int,FZ_BYTE*);
+extern void (*fz_path_w4i1o4)(FZ_BYTE*,FZ_BYTE*,unsigned char,int,FZ_BYTE*);
extern void (*fz_text_1c1)(FZ_BYTE*,int,FZ_BYTE*,int,int,int);
extern void (*fz_text_1o1)(FZ_BYTE*,int,FZ_BYTE*,int,int,int);