fix walk freeze, fix some texts displaying in pink

This commit is contained in:
Eduardo Bart
2012-01-19 14:23:24 -02:00
parent 3725577aac
commit 9450fab9e7
6 changed files with 19 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ void UIWidget::drawText(const Rect& screenCoords)
m_textFramebuffer->bind();
Rect virtualTextRect(0, 0, boxSize);
virtualTextRect.translate(m_textOffset);
g_painter.setCompositionMode(Painter::CompositionMode_Add);
g_painter.setCompositionMode(Painter::CompositionMode_DestBlending);
m_font->renderText(m_text, virtualTextRect, m_textAlign, Fw::white);
g_painter.resetCompositionMode();
m_textFramebuffer->release();