[cairo-commit] src/cairo-glitz-surface.c

Jinghua Luo jinghua at kemper.freedesktop.org
Sat Nov 22 19:48:34 PST 2008


 src/cairo-glitz-surface.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 63180edf6f7cc81beda626190ca1055efa330fda
Author: Luo Jinghua <sunmoon1997 at gmail.com>
Date:   Sun Nov 23 11:42:26 2008 +0800

    glitz: set clone_offset_{x, y} on success in clone_similar.
    
    With this fix, glitz backend passes 135 test cases and fails 66 test cases.

diff --git a/src/cairo-glitz-surface.c b/src/cairo-glitz-surface.c
index 3c3fe16..db1d29e 100644
--- a/src/cairo-glitz-surface.c
+++ b/src/cairo-glitz-surface.c
@@ -510,6 +510,8 @@ _cairo_glitz_surface_clone_similar (void	    *abstract_surface,
 	}
 
 	*clone_out = &clone->base;
+	*clone_offset_x = 0;
+	*clone_offset_y = 0;
 
 	return CAIRO_STATUS_SUCCESS;
     }


More information about the cairo-commit mailing list