[cairo-commit] src/cairo-clip.c

Vladimir Vukicevic vladimir at kemper.freedesktop.org
Thu Apr 17 21:16:59 PDT 2008


 src/cairo-clip.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 212357cb4c859bb29649f86e808f498efb6d7315
Author: Robert O'Callahan <roc at ocallahan.org>
Date:   Fri Apr 18 06:15:26 2008 +0200

    Clone surface correctly when doing a deep clip copy
    
    The rect specifies the clip surface location within the owning surface;
    when cloned, the x/y should be 0 to get the entire surface.
    
    Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=409227

diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 28057e5..9a42fc0 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -678,8 +678,8 @@ _cairo_clip_init_deep_copy (cairo_clip_t    *clip,
 
         if (other->surface) {
             status = _cairo_surface_clone_similar (target, other->surface,
-					           other->surface_rect.x,
-						   other->surface_rect.y,
+					           0,
+						   0,
 						   other->surface_rect.width,
 						   other->surface_rect.height,
 						   &clip->surface);


More information about the cairo-commit mailing list