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

Chris Wilson ickle at kemper.freedesktop.org
Tue Sep 1 16:42:04 PDT 2009


 src/cairo-xlib-surface.c |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

New commits:
commit 17cdffafda04514f08e0f0f11d0a85b938282c38
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Sep 2 00:41:18 2009 +0100

    [xlib] Remove stray code
    
    Grr. Should have spotted this before pushing - remove the addition of the
    superfluous code.

diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 1de6a97..9d49d87 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -2193,10 +2193,7 @@ _cairo_xlib_surface_composite (cairo_operator_t		op,
 	assert (is_integer_translation);
 
 	if (clip_region == NULL) {
-	    XCopyArea (dst->dpy,
-		       src->drawable,
-		       dst->drawable,
-		       gc,
+	    XCopyArea (dst->dpy, src->drawable, dst->drawable, gc,
 		       src_x + src_attr.x_offset + itx,
 		       src_y + src_attr.y_offset + ity,
 		       width, height,
@@ -2212,10 +2209,7 @@ _cairo_xlib_surface_composite (cairo_operator_t		op,
 		cairo_rectangle_int_t rect;
 
 		cairo_region_get_rectangle (clip_region, n, &rect);
-		XCopyArea (dst->dpy,
-			   src->drawable,
-			   dst->drawable,
-			   gc,
+		XCopyArea (dst->dpy, src->drawable, dst->drawable, gc,
 			   rect.x + src_x,
 			   rect.y + src_y,
 			   rect.width, rect.height,
@@ -2255,9 +2249,6 @@ _cairo_xlib_surface_composite (cairo_operator_t		op,
 	} else {
 	    int n, num_rects;
 
-	    src_x += src_attr.x_offset + itx;
-	    src_y += src_attr.y_offset + ity;
-
 	    num_rects = cairo_region_num_rectangles (clip_region);
 	    for (n = 0; n < num_rects; n++) {
 		cairo_rectangle_int_t rect;


More information about the cairo-commit mailing list