[cairo-bugs] [Bug 35113] provide backend surface type info for sub surfaces
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 17 10:14:10 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=35113
--- Comment #3 from Uli Schlachter <psychon at znc.in> 2012-01-17 10:14:10 PST ---
I think the following commit is relevant here:
commit ba855a12e8d686f2137f82d317791f3ec4a68fc0
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Oct 14 16:01:27 2011 +0100
xlib-xp
diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c
index 48d10fb..b93604f 100644
--- a/src/cairo-surface-subsurface.c
+++ b/src/cairo-surface-subsurface.c
@@ -577,6 +577,7 @@ cairo_surface_create_for_rectangle (cairo_surface_t
*target,
}
surface->target = cairo_surface_reference (target);
+ surface->base.type = surface->target->type;
return &surface->base;
}
@@ -609,6 +610,7 @@ _cairo_surface_create_for_rectangle_int (cairo_surface_t
*target,
surface->extents.x += target->device_transform.x0;
surface->extents.y += target->device_transform.y0;
surface->target = cairo_surface_reference (target);
+ surface->base.type = surface->target->type;
return &surface->base;
}
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the cairo-bugs
mailing list