Fix bug in rasterizeEdges() where the stride should be signed.
authorJinghua Luo <sunmoon1997@gmail.com>
Tue, 10 Jul 2007 06:47:28 +0000 (14:47 +0800)
committerJinghua Luo <sunmoon1997@gmail.com>
Tue, 10 Jul 2007 06:47:28 +0000 (14:47 +0800)
pixman/pixman-edge.c

index 1b28550..335a25f 100644 (file)
@@ -128,7 +128,7 @@ fbRasterizeEdges8 (pixman_image_t       *image,
     int fill_start = -1, fill_end = -1;
     int fill_size = 0;
     uint32_t *buf = (image)->bits.bits;                
-    uint32_t stride = (image)->bits.rowstride; 
+    int32_t stride = (image)->bits.rowstride;  
     uint32_t width = (image)->bits.width;
     
     line = buf + pixman_fixed_to_int (y) * stride;