diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-10-16 10:11:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-10-16 17:04:16 +0100 |
commit | 54df07a3da2bfbbdbe2dde92ca298ac0d7b8d255 (patch) | |
tree | 760fa258de427d0701291d8877b2e4741a81dc5e /src/cairo-directfb-surface.c | |
parent | 6a19a82efd3afe8fb8bd30e5362b247de8efe159 (diff) |
[surface] Don't AND in the desired content.
Gah, that was a horrible mistake. It was a flawed hack to create Pixmaps
of the correct depth when cloning patterns for blitting to the xlib
backend. However, it had the nasty side-effect of discarding alpha when
targeting Window surfaces. The correct solution is to simply correct the
Pixmap of the desired depth and render a matching pattern onto the
surface - i.e. a reversal the current acquire -> clone. See the
forthcoming revised xcb backend on how I should have done it originally.
Diffstat (limited to 'src/cairo-directfb-surface.c')
-rw-r--r-- | src/cairo-directfb-surface.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cairo-directfb-surface.c b/src/cairo-directfb-surface.c index 8247fb94..afad2705 100644 --- a/src/cairo-directfb-surface.c +++ b/src/cairo-directfb-surface.c @@ -706,7 +706,6 @@ _cairo_directfb_surface_release_dest_image (void *abstract_surf static cairo_status_t _cairo_directfb_surface_clone_similar (void *abstract_surface, cairo_surface_t *src, - cairo_content_t content, int src_x, int src_y, int width, @@ -846,7 +845,6 @@ _directfb_prepare_composite (cairo_directfb_surface_t *dst, } status = _cairo_pattern_acquire_surface (src_pattern, &dst->base, - CAIRO_CONTENT_COLOR_ALPHA, *src_x, *src_y, width, height, CAIRO_PATTERN_ACQUIRE_NO_REFLECT, (cairo_surface_t **) &src, |