Created attachment 118030 [details] Initializes cairo_win32_printing_surface_t::content When drawing an image with an alpha channel into a cairo_win32_printing_surface_t, it results in a black background. cairo version: 1.14.2 It looks like field `cairo_win32_printing_surface_t::content` is used to control the transparency, but that field is never initialized. Maybe this field is not even necessary, because you can use `win32.base.content`, but it is modified in `_cairo_win32_printing_surface_paint_recording_pattern()` so I'm not so sure. Anyway, initializing it in `cairo_win32_printing_surface_create()` solves the issue (`win32.base.content` is initialized in `_cairo_surface_init`).
Looks good to me. What is the full name you want me to include in the commit author? (It is easier if you do a git commit / git format-patch so I don't have to manually add the commit metadata)
My full name is "Rodrigo Rivas Costa", that will be nice. I'll do as you say in future patches, this one just looked too small to care. Thanks!
Pushed
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.