bugzilla-daemon at freedesktop.org
2008-Nov-19 21:35 UTC
[Swfdec] [Bug 18626] New: Regression in swfdec_renderer_transform()
http://bugs.freedesktop.org/show_bug.cgi?id=18626 Summary: Regression in swfdec_renderer_transform() Product: swfdec Version: git Platform: All OS/Version: All Status: NEW Severity: critical Priority: medium Component: library AssignedTo: swfdec at lists.freedesktop.org ReportedBy: chris at chris-wilson.co.uk QAContact: swfdec at lists.freedesktop.org commit 90dab77f5639ee9d3d75eb739557350aa432e353 changed the target surface format from always ARGB32 to depend upon whether the source surface has an alpha channel. This fails to take into account the result of the color transformation which may require the alpha channel. The simple fix would be: diff --git a/swfdec/swfdec_renderer.c b/swfdec/swfdec_renderer.c index 787e592..dcf74dd 100644 --- a/swfdec/swfdec_renderer.c +++ b/swfdec/swfdec_renderer.c @@ -424,11 +424,10 @@ swfdec_renderer_transform (SwfdecRenderer *renderer, cairo_surface_t *surface, /* FIXME: This function should likely be a vfunc. * Or better: it should compile to a shader */ + target = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, rect->width, rect->height); if (cairo_surface_get_content (surface) & CAIRO_CONTENT_ALPHA) { - target = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, rect->width, rect->height); mask = 0; } else { - target = cairo_image_surface_create (CAIRO_FORMAT_RGB24, rect->width, rect->height); mask = SWFDEC_COLOR_COMBINE (0, 0, 0, 0xFF); } cairo_surface_set_device_offset (target, -rect->x, -rect->y); -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug.
bugzilla-daemon at freedesktop.org
2008-Nov-20 11:05 UTC
[Swfdec] [Bug 18626] Regression in swfdec_renderer_transform()
http://bugs.freedesktop.org/show_bug.cgi?id=18626 Benjamin Otte <otte at gnome.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Benjamin Otte <otte at gnome.org> 2008-11-20 03:05:37 PST --- fixed in git master In a possibly way smarter way, too! -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug.