<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:psychon@znc.in" title="Uli Schlachter <psychon@znc.in>"> <span class="fn">Uli Schlachter</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - Matrix operations offset draw on widget creation."
href="https://bugs.freedesktop.org/show_bug.cgi?id=92044">bug 92044</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTABUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - Matrix operations offset draw on widget creation."
href="https://bugs.freedesktop.org/show_bug.cgi?id=92044#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - Matrix operations offset draw on widget creation."
href="https://bugs.freedesktop.org/show_bug.cgi?id=92044">bug 92044</a>
from <span class="vcard"><a class="email" href="mailto:psychon@znc.in" title="Uli Schlachter <psychon@znc.in>"> <span class="fn">Uli Schlachter</span></a>
</span></b>
<pre>This works as documented. Try using things like cairo_rotate() instead of
overwriting the matrix. At least try something like this:
cairo_matrix_t matrix, identity_matrix;
cairo_get_matrix(cr, &matrix);
cairo_matrix_init_identity(&identity_matrix); // This makes no sense, but feel
free to replace with a rotation
cairo_matrix_multiply(&matrix, &matrix, &identity_matrix);
cairo_set_matrix(cr, &matrix);
(Technical detail: Gtk is giving you a cairo context onto a large surface and
uses the matrix so that it appears to you as if the surface's (0, 0) were at
the top-left corner of your widget. If you ignore the matrix, stuff breaks.)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>