<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - transparent images in cairo_win32_printing_surface_t have a black background"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91835">91835</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>transparent images in cairo_win32_printing_surface_t have a black background
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>win32 backend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rodrigorivascosta@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=118030" name="attach_118030" title="Initializes cairo_win32_printing_surface_t::content">attachment 118030</a> <a href="attachment.cgi?id=118030&action=edit" title="Initializes cairo_win32_printing_surface_t::content">[details]</a></span>
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`).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>