summaryrefslogtreecommitdiff
path: root/src/cairo-surface-fallback.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-19 17:11:55 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-22 23:01:51 +0000
commitae25f1c360b79f0b7b1bb73e9ebc47eb794d8007 (patch)
tree1e8275333922a32bf5f22bdf42a3a44751085adb /src/cairo-surface-fallback.c
parent9cd9137843f8f1c3d32bedb6510259ab3638a2c5 (diff)
downloadcairo-ae25f1c360b79f0b7b1bb73e9ebc47eb794d8007.tar.gz
Alter definition of cairo_composite_rectangles_t
This is a more useful definition that is able to individually track the rectangles that compose the composite operation. This will be used by the specialist compositors as a means to perform the common extents determination for an operation.
Diffstat (limited to 'src/cairo-surface-fallback.c')
-rw-r--r--src/cairo-surface-fallback.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c
index dbc2a2170..a20bd68c2 100644
--- a/src/cairo-surface-fallback.c
+++ b/src/cairo-surface-fallback.c
@@ -42,6 +42,7 @@
#include "cairo-surface-fallback-private.h"
#include "cairo-clip-private.h"
+#include "cairo-composite-rectangles-private.h"
#include "cairo-error-private.h"
#include "cairo-region-private.h"
#include "cairo-spans-private.h"
@@ -883,15 +884,15 @@ _composite_spans_draw_func (void *closure,
cairo_composite_rectangles_t rects;
cairo_composite_spans_info_t *info = closure;
- _cairo_composite_rectangles_init (&rects,
- extents->x, extents->y,
- extents->width, extents->height);
-
+ rects.source = *extents;
+ rects.mask = *extents;
+ rects.bounded = *extents;
/* The incoming dst_x/y are where we're pretending the origin of
* the dst surface is -- *not* the offset of a rectangle where
* we'd like to place the result. */
- rects.dst.x -= dst_x;
- rects.dst.y -= dst_y;
+ rects.bounded.x -= dst_x;
+ rects.bounded.y -= dst_y;
+ rects.unbounded = rects.bounded;;
return _cairo_surface_composite_polygon (dst, op, src,
info->fill_rule,