[cairo-bugs] [Bug 91835] New: transparent images in cairo_win32_printing_surface_t have a black background

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 1 03:39:17 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=91835

            Bug ID: 91835
           Summary: transparent images in cairo_win32_printing_surface_t
                    have a black background
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: win32 backend
          Assignee: cairo-bugs at cairographics.org
          Reporter: rodrigorivascosta at gmail.com
        QA Contact: cairo-bugs at cairographics.org

Created attachment 118030
  --> https://bugs.freedesktop.org/attachment.cgi?id=118030&action=edit
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`).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20150901/2530d092/attachment.html>


More information about the cairo-bugs mailing list