diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-09-02 01:32:45 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-09-02 01:32:45 +0200 |
commit | 98a12532a6df4cf6f13d109e93e3e236bf3489a4 (patch) | |
tree | 83ce8b9cd02d672bd03776bb40c56c0323b99e3b /raster/pathscan.c | |
parent | 0f168c6810aa8f031fe546312fda81e274c9be80 (diff) | |
download | mupdf-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 'raster/pathscan.c')
-rw-r--r-- | raster/pathscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raster/pathscan.c b/raster/pathscan.c index 67ff0456..0ea46502 100644 --- a/raster/pathscan.c +++ b/raster/pathscan.c @@ -432,7 +432,7 @@ static inline void blit(fz_pixmap *pix, int x, int y, unsigned char *argb, int over) { unsigned char *dst; - int cov; + unsigned char cov; dst = pix->samples + ( (y - pix->y) * pix->w + (x - pix->x) ) * pix->n; cov = 0; |