From 98a12532a6df4cf6f13d109e93e3e236bf3489a4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 2 Sep 2008 01:32:45 +0200 Subject: 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. --- raster/pathscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'raster/pathscan.c') 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; -- cgit v1.2.3