<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#333333" bgcolor="#c0c0c0">
<p><font size="4"><font face="Helvetica, Arial, sans-serif">I have
followed the example in the FAQ using CAIRO_OPERATOR_SOURCE
but still the surface doesn't clear.</font></font> </p>
<div class="moz-forward-container">
<pre style="font-family: mono; margin-left: 175.258px; margin-right: 175.258px; border: 1px solid rgb(197, 197, 246); background-color: rgb(219, 219, 247); padding: 0.5em; color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><code>/* Set surface to a color (r, g, b, a) */
cairo_set_source_rgba(cr, 0.5, 0.5, 0.5, 1.0);
cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
cairo_paint(cr);</code></pre>
<div class="moz-signature"><font size="4"><font face="Helvetica,
Arial, sans-serif">I use the same code to initialize the
surface and that works fine. I then draw on the surface
successfully. I then try to clear the surface by
re-initializing it and <u>nothing</u> happens. I've tried
cairo_surface_flush() to no effect...</font></font></div>
<div class="moz-signature"><font size="4"><font face="Helvetica,
Arial, sans-serif"><br>
</font></font></div>
<div class="moz-signature"><font size="4"><font face="Helvetica,
Arial, sans-serif">Help please !<br>
</font></font></div>
<div class="moz-signature">-- <br>
<i>Clive.</i><br>
sent from my i7-1165G7 running Linux 5.10</div>
</div>
</body>
</html>