[PATCH] _blit_spans: Should set the height to h not the y coord.

[email protected]
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
From: Zhigang Gong <[email protected]>

Signed-off-by: Zhigang Gong <[email protected]>
---
 src/cairo-image-compositor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cairo-image-compositor.c b/src/cairo-image-compositor.c
index 6b95840..211cdcd 100644
--- a/src/cairo-image-compositor.c
+++ b/src/cairo-image-compositor.c
@@ -1671,7 +1671,7 @@ _blit_spans (void *abstract_renderer, int y, int h,
     } else {
 	do {
 	    if (spans[0].coverage) {
-		int yy = y, hh = y;
+		int yy = y, hh = h;
 		do {
 		    void *src = r->u.blit.src_data + yy*r->u.blit.src_stride + spans[0].x*cpp;
 		    void *dst = r->u.blit.data + yy*r->u.blit.stride + spans[0].x*cpp;
-- 
1.7.4.4

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.