Somewhat better workaround for \fad uglyness bug.

No more seams between border and fill when fill alpha is zero, though they still appear when fill alpha is nonzero.
It's either seams or ugly fades.

Originally committed to SVN as r2285.
This commit is contained in:
Niels Martin Hansen 2008-07-25 00:37:06 +00:00
parent ea79951788
commit 94d3185170
1 changed files with 3 additions and 1 deletions

View File

@ -703,7 +703,9 @@ CRect CLine::PaintOutline(SubPicDesc& spd, CRect& clipRect, BYTE* pAlphaMask, CP
if(w->m_style.borderStyle == 0)
{
bbox |= w->Draw(spd, clipRect, pAlphaMask, x, y, sw, false, true);
// Always draw border part of widened region
// Draw fill part of widened region only if there isn't a chance the real fill is transculent
bbox |= w->Draw(spd, clipRect, pAlphaMask, x, y, sw, !(w->m_style.alpha[0]||w->m_style.alpha[1]||alpha), true);
}
else if(w->m_style.borderStyle == 1 && w->m_pOpaqueBox)
{