<div dir="ltr">Some further experiments:<div>- changing the text color to non-black did not change the grey-ish background for the arrow's text;</div><div>- using SetTextFillColor immediately before does not change anything;</div>

<div>- debugging inside DrawTransparent I've seen that there is a "return false" that is triggered three frames deeper: DrawTransparent -> OutputDevice::DrawTransparentNatively -> SalGraphics::DrawPolyPolygon -> X11SalGraphics::drawPolyPolygon.</div>

<div>In the last function this if-statement is triggered and the polypolygon is never drawn I suspect:</div><div>[in core/vcl/unx/generic/gdi/salgdi.cxx:1023 ]</div><div>"""</div><div><div>// cannot handle pencolor!=brushcolor yet</div>

<div>    if( (nPenColor_ != SALCOLOR_NONE)</div><div>    &&  (nPenColor_ != nBrushColor_) )</div><div>        return false;</div></div><div>"""</div><div><br></div><div>*Errata on my last commit message*: It is mpGraphics->DrawRect to be commented, not DrawTextRect.</div>

<div><br></div><div>Matteo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 27, 2014 at 1:57 PM, Matteo Campanelli <span dir="ltr"><<a href="mailto:matteo.campanelli@gmail.com" target="_blank">matteo.campanelli@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div>i was trying to set a transparent background in text areas in Draw.</div><div><br></div><div>

I replaced the call to mpGraphics->DrawRect in OutputDevice::ImplDrawText with a call to DrawTransparent on the same area. However the result has issues such as [see attached picture]:</div>

<div>- not giving the expected color (the arrow text in the picture should be the same color as the text area's),</div><div>- leaving old rendering leftovers around when text is moved (or the related arrow in this case).</div>



<div><br></div><div>I tried to debug how other transparent areas are drawn but that didn't give much insight.</div><div>Does anyone any experience with this or any guess on what may be going wrong?</div><div><br></div>


<div>Thanks,</div><div>Matteo</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>