back to otclient dev, with new background!

* show otclient version in background
* disable about module (don't really need it)
* new function for formating strings like sprintf, Fw::formatString
* new nice background (taken from RPG maker XV)
* update contact information in README
* fix text rendering issues with opacity
This commit is contained in:
Eduardo Bart
2012-03-16 10:28:29 -03:00
parent b46d4c4d5f
commit a24212d4de
20 changed files with 69 additions and 21 deletions

View File

@@ -41,7 +41,7 @@ void UIFrameCounter::draw()
UIWidget::draw();
if(g_clock.ticksElapsed(m_lastFrameTicks) >= 1000) {
m_fpsText = Fw::mkstr("FPS: ", m_frameCount);
m_fpsText = Fw::formatString("FPS: %d", m_frameCount);
m_lastFrameTicks = g_clock.ticks();
m_frameCount = 0;
}

View File

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