<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">
<div class="moz-cite-prefix">Thanks Mohit,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Still no success. There's a mistake
in my program because if i substitute the var joueur1 with a
static fixed text :</div>
<div class="moz-cite-prefix">cairo_move_to(cr, 10, 50);<br>
cairo_show_text(cr, "MY_TEST_TEXT");<br>
</div>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Nothing is displayed in the image .</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Something wrong i the loop but i don't
know where.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I also have inserted something to trace
the program:</div>
<div class="moz-cite-prefix">cairo_move_to(cr, 10, 50);</div>
<div class="moz-cite-prefix">system("/usr/bin/touch
./AM_I_EXECUTED?");<br>
</div>
<div class="moz-cite-prefix">
cairo_show_text(cr, "MY_TEST_TEXT");</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">The file ./AM_I_EXECUTED is created
.....</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">No idea.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">eric</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 05/01/2022 à 17:18, Mohit Sindhwani
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:8df5109e-3964-4cf8-0d11-cbb5e816e146@onghu.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 2022-1-6 12:10 am, Eric Feillant
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5b823164-40bf-52cc-4e48-19d00485bf18@live-media.fr">
<div class="moz-cite-prefix">Hi Mohit,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Thank you for your response.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Yes, the code run in a loop for all
players. I've tried without :</div>
<div class="moz-cite-prefix"><font face="Lucida Sans Unicode">cairo_set_source_rgb(cr,
0.7, 0.3, 0.2);<br>
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);<br>
cairo_paint(cr);</font></div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">But without success, only player 2
is present in the image ... really i don't understand</div>
<div class="moz-cite-prefix">because the two player are
displayed on screen with the printf function ....</div>
<div class="moz-cite-prefix"><br>
</div>
</blockquote>
<br>
Are you able to post the images? I think the group doesn't allow
pictures but you can try or upload some place and link it.<br>
<br>
<div class="moz-cite-prefix"><font face="Lucida Sans Unicode">cairo_set_source_rgb(cr,
0.7, 0.3, 0.2);<br>
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);<br>
cairo_paint(cr);</font></div>
<div class="moz-cite-prefix"><br>
In short, this code sets the colour to rgb(0.7, 0.3, 0.3) and
then seems to paint the whole surface in that colour. So, if you
did:<br>
- paint the whole surface in a colour<br>
- draw the text for player 1<br>
- paint the whole surface in a colour [again]<br>
- draw the text for player 2<br>
<br>
But if you have removed it and you're still not seeing both
texts, something else is going on.<br>
<br>
Best Regards,<br>
Mohit.<br>
2022-1-6 | 12:16 am.<br>
<br>
<br>
<br>
</div>
</blockquote>
<br>
</body>
</html>